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

Side by Side Diff: test/mjsunit/wasm/embenchen/copy.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 = 'sum:8930\n'; 4 var EXPECTED_OUTPUT = 'sum:8930\n';
5 var Module = { 5 var Module = {
6 arguments: [1], 6 arguments: [1],
7 print: function(x) {Module.printBuffer += x + '\n';}, 7 print: function(x) {Module.printBuffer += x + '\n';},
8 preRun: [function() {Module.printBuffer = ''}], 8 preRun: [function() {Module.printBuffer = ''}],
9 postRun: [function() { 9 postRun: [function() {
10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); 10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer);
11 }], 11 }],
12 }; 12 };
(...skipping 5959 matching lines...) Expand 10 before | Expand all | Expand 10 after
5972 } 5972 }
5973 5973
5974 // shouldRunNow refers to calling main(), not run(). 5974 // shouldRunNow refers to calling main(), not run().
5975 var shouldRunNow = true; 5975 var shouldRunNow = true;
5976 if (Module['noInitialRun']) { 5976 if (Module['noInitialRun']) {
5977 shouldRunNow = false; 5977 shouldRunNow = false;
5978 } 5978 }
5979 5979
5980 5980
5981 run([].concat(Module["arguments"])); 5981 run([].concat(Module["arguments"]));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698