| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 var EXPECTED_OUTPUT = | 1 var EXPECTED_OUTPUT = |
| 6 /frame averages: .+ \+- .+, range: .+ to .+ \n/; | 2 /frame averages: .+ \+- .+, range: .+ to .+ \n/; |
| 7 var Module = { | 3 var Module = { |
| 8 arguments: [1], | 4 arguments: [1], |
| 9 print: function(x) {Module.printBuffer += x + '\n';}, | 5 print: function(x) {Module.printBuffer += x + '\n';}, |
| 10 preRun: [function() {Module.printBuffer = ''}], | 6 preRun: [function() {Module.printBuffer = ''}], |
| 11 postRun: [function() { | 7 postRun: [function() { |
| 12 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); | 8 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); |
| 13 }], | 9 }], |
| 14 }; | 10 }; |
| (...skipping 20302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20317 } | 20313 } |
| 20318 | 20314 |
| 20319 // shouldRunNow refers to calling main(), not run(). | 20315 // shouldRunNow refers to calling main(), not run(). |
| 20320 var shouldRunNow = true; | 20316 var shouldRunNow = true; |
| 20321 if (Module['noInitialRun']) { | 20317 if (Module['noInitialRun']) { |
| 20322 shouldRunNow = false; | 20318 shouldRunNow = false; |
| 20323 } | 20319 } |
| 20324 | 20320 |
| 20325 | 20321 |
| 20326 run([].concat(Module["arguments"])); | 20322 run([].concat(Module["arguments"])); |
| OLD | NEW |