OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // TODO(eholk): Once we have stable test IDs, use those as the key instead. | 5 // TODO(eholk): Once we have stable test IDs, use those as the key instead. |
6 // See https://github.com/WebAssembly/spec/issues/415 | 6 // See https://github.com/WebAssembly/spec/issues/415 |
7 // | 7 // |
8 // Flags: --expose-wasm --allow-natives-syntax | 8 // Flags: --expose-wasm --allow-natives-syntax |
9 | 9 |
10 const known_failures = { | 10 const known_failures = { |
11 "'WebAssembly.Module.customSections' method": | 11 "'WebAssembly.Module.customSections' method": |
12 'https://bugs.chromium.org/p/v8/issues/detail?id=5815', | 12 'https://bugs.chromium.org/p/v8/issues/detail?id=5815', |
13 "'WebAssembly.Table.prototype.get' method": | 13 "'WebAssembly.Table.prototype.get' method": |
14 'https://bugs.chromium.org/p/v8/issues/detail?id=5507', | 14 'https://bugs.chromium.org/p/v8/issues/detail?id=5507', |
15 "'WebAssembly.Table.prototype.set' method": | 15 "'WebAssembly.Table.prototype.set' method": |
16 'https://bugs.chromium.org/p/v8/issues/detail?id=5507', | 16 'https://bugs.chromium.org/p/v8/issues/detail?id=5507', |
17 "'WebAssembly.Instance' constructor function": | |
18 'https://bugs.chromium.org/p/v8/issues/detail?id=6017', | |
19 }; | 17 }; |
20 | 18 |
21 let failures = []; | 19 let failures = []; |
22 let unexpected_successes = []; | 20 let unexpected_successes = []; |
23 | 21 |
24 let last_promise = new Promise((resolve, reject) => { resolve(); }); | 22 let last_promise = new Promise((resolve, reject) => { resolve(); }); |
25 | 23 |
26 function test(func, description) { | 24 function test(func, description) { |
27 let maybeErr; | 25 let maybeErr; |
28 try { func(); } | 26 try { func(); } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 print(` ${unexpected_successes[i]}`); | 99 print(` ${unexpected_successes[i]}`); |
102 } | 100 } |
103 print("Some tests SUCCEEDED but were known failures. If you've fixed " + | 101 print("Some tests SUCCEEDED but were known failures. If you've fixed " + |
104 "the bug, please remove the test from the known failures list.") | 102 "the bug, please remove the test from the known failures list.") |
105 } | 103 } |
106 if (unexpected) { | 104 if (unexpected) { |
107 quit(1); | 105 quit(1); |
108 } | 106 } |
109 } | 107 } |
110 }); | 108 }); |
OLD | NEW |