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

Side by Side Diff: test/mjsunit/wasm/embenchen/box2d.js

Issue 2771183002: [wasm][asm.js] Fix and enable several asm.js tests with the new parser. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Modified embenchen to direct to asm-wasm. 1 // Modified embenchen to direct to asm-wasm.
2 // Flags: --validate-asm --allow-natives-syntax 2 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm
3 3
4 var EXPECTED_OUTPUT = 4 var EXPECTED_OUTPUT =
5 /frame averages: .+ \+- .+, range: .+ to .+ \n/; 5 /frame averages: .+ \+- .+, range: .+ to .+ \n/;
6 var Module = { 6 var Module = {
7 arguments: [1], 7 arguments: [1],
8 print: function(x) {Module.printBuffer += x + '\n';}, 8 print: function(x) {Module.printBuffer += x + '\n';},
9 preRun: [function() {Module.printBuffer = ''}], 9 preRun: [function() {Module.printBuffer = ''}],
10 postRun: [function() { 10 postRun: [function() {
11 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); 11 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer));
12 }], 12 }],
(...skipping 20305 matching lines...) Expand 10 before | Expand all | Expand 10 after
20318 } 20318 }
20319 20319
20320 // shouldRunNow refers to calling main(), not run(). 20320 // shouldRunNow refers to calling main(), not run().
20321 var shouldRunNow = true; 20321 var shouldRunNow = true;
20322 if (Module['noInitialRun']) { 20322 if (Module['noInitialRun']) {
20323 shouldRunNow = false; 20323 shouldRunNow = false;
20324 } 20324 }
20325 20325
20326 20326
20327 run([].concat(Module["arguments"])); 20327 run([].concat(Module["arguments"]));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698