Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: ppapi/native_client/tests/nacl_browser/exit_status/nacl.scons

Issue 10918152: Port nacl_integration exit_status test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Edits Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 Import('env')
7
8 # postmessage test to check that exit status is available to
9 # JavaScript
10
11 pm_es_obj = env.ComponentObject('pm_exit_status_test.o',
12 'pm_exit_status_test.cc')
13 pm_es_nexe_name = env.ProgramNameForNmf('pm_exit_status_test')
14 pm_es_nexe = env.ComponentProgram(pm_es_nexe_name,
15 pm_es_obj,
16 EXTRA_LIBS=['ppapi_cpp'])
17 env.Publish(pm_es_nexe_name, 'run',
18 ['pm_exit_status_test.html'])
19
20 # chrome_browser_tests
21
22 for out_name, run_name, test_args in [
23 ['pm_exit0_status_browser_test.out',
24 'run_pm_exit0_status_chrome_browser_test',
25 [('trigger', 'exit0'), ('expected_exit', '0')]],
26 ['pm_exit7_status_browser_test.out',
27 'run_pm_exit7_status_chrome_browser_test',
28 [('trigger', 'exit7'), ('expected_exit', '7')]],
29 ['pm_exit254_status_browser_test.out',
30 'run_pm_exit254_status_chrome_browser_test',
31 [('trigger', 'exit254'), ('expected_exit', '254')]],
32 ['pm_exitneg2_status_browser_test.out',
33 'run_pm_exitneg2_status_chrome_browser_test',
34 [('trigger', 'exitneg2'), ('expected_exit', '254')]],
35 ]:
36
37 node = env.PPAPIBrowserTester(
38 out_name,
39 url='pm_exit_status_test.html',
40 nmf_names=['pm_exit_status_test'],
41 files=env.ExtractPublishedFiles(pm_es_nexe_name),
42 args=['--debug'],
43 test_args=test_args,
44 osenv=['NACLVERBOSITY=0:pp_weak_ref=0:weak_ref=0']
45 )
46
47 env.AddNodeToTestSuite(node,
48 ['chrome_browser_tests', 'exit_status_tests'],
49 run_name,
50 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698