OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 # Tests fatal errors that occur during loading. | 6 # Tests fatal errors that occur during loading. |
7 # (See ppapi_browser/crash for fatal errors that occur after loading). | 7 # (See ppapi_browser/crash for fatal errors that occur after loading). |
8 # TODO(polina): rename the directory and browser test to bad_load | 8 # TODO(polina): rename the directory and browser test to bad_load |
9 # | 9 # |
10 # Manual testing with localhost:5103/scons-out/.../staging/ppapi_bad.html: | 10 # Manual testing with localhost:5103/scons-out/.../staging/ppapi_bad.html: |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 'ppapi_bad_browser_test.out', | 62 'ppapi_bad_browser_test.out', |
63 url='ppapi_bad.html', | 63 url='ppapi_bad.html', |
64 nmf=nmfs, | 64 nmf=nmfs, |
65 files=[env.File(f) for f in ppapi_bad_files], | 65 files=[env.File(f) for f in ppapi_bad_files], |
66 args=['--allow_404']) | 66 args=['--allow_404']) |
67 | 67 |
68 env.AddNodeToTestSuite(node, | 68 env.AddNodeToTestSuite(node, |
69 ['chrome_browser_tests'], | 69 ['chrome_browser_tests'], |
70 'run_ppapi_bad_browser_test', | 70 'run_ppapi_bad_browser_test', |
71 is_broken=env.PPAPIBrowserTesterIsBroken() or | 71 is_broken=env.PPAPIBrowserTesterIsBroken() or |
72 env.Bit('nacl_glibc') or | 72 env.Bit('nacl_glibc')) |
73 # TODO(halyavin): re-enable this when fixed. | |
74 True | |
75 ) | |
76 | 73 |
77 | 74 |
78 # Bad nexe tests that won't work in PNaCl (native) | 75 # Bad nexe tests that won't work in PNaCl (native) |
79 # For example, partly_invalid.nexe has inline assembly in its source files. | 76 # For example, partly_invalid.nexe has inline assembly in its source files. |
80 ppapi_bad_native_files = [ | 77 ppapi_bad_native_files = [ |
81 env.File('ppapi_bad_native.html'), | 78 env.File('ppapi_bad_native.html'), |
82 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + | 79 env.File('${SCONSTRUCT_DIR}/tests/ppapi_browser/progress_events/' + |
83 'ppapi_progress_events.js'), | 80 'ppapi_progress_events.js'), |
84 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') | 81 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/browserdata/nacltest.js') |
85 ] | 82 ] |
(...skipping 12 matching lines...) Expand all Loading... |
98 | 95 |
99 env.AddNodeToTestSuite(node, | 96 env.AddNodeToTestSuite(node, |
100 ['chrome_browser_tests'], | 97 ['chrome_browser_tests'], |
101 'run_ppapi_bad_native_test', | 98 'run_ppapi_bad_native_test', |
102 is_broken=env.PPAPIBrowserTesterIsBroken() or | 99 is_broken=env.PPAPIBrowserTesterIsBroken() or |
103 env.Bit('nacl_glibc') or | 100 env.Bit('nacl_glibc') or |
104 env.Bit('bitcode') or | 101 env.Bit('bitcode') or |
105 # TODO(halyavin): re-enable this when fixed. | 102 # TODO(halyavin): re-enable this when fixed. |
106 True | 103 True |
107 ) | 104 ) |
OLD | NEW |