OLD | NEW |
1 // svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump tex
t + pixel results | 1 // svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump tex
t + pixel results |
2 if (self.testRunner) { | 2 if (self.testRunner) { |
3 if (self.enablePixelTesting) | 3 if (self.enablePixelTesting) |
4 testRunner.dumpAsTextWithPixelResults(); | 4 testRunner.dumpAsTextWithPixelResults(); |
5 else | 5 else |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 } | 7 } |
8 | 8 |
9 var isJsTest = true; | 9 var isJsTest = true; |
10 | 10 |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 } | 719 } |
720 | 720 |
721 function isSuccessfullyParsed() | 721 function isSuccessfullyParsed() |
722 { | 722 { |
723 // FIXME: Remove this and only report unexpected syntax errors. | 723 // FIXME: Remove this and only report unexpected syntax errors. |
724 successfullyParsed = !unexpectedErrorMessage; | 724 successfullyParsed = !unexpectedErrorMessage; |
725 shouldBeTrue("successfullyParsed"); | 725 shouldBeTrue("successfullyParsed"); |
726 debug('<br /><span class="pass">TEST COMPLETE</span>'); | 726 debug('<br /><span class="pass">TEST COMPLETE</span>'); |
727 } | 727 } |
728 | 728 |
| 729 var wasPostTestScriptParsed, wasFinishJSTestCalled, jsTestIsAsync; |
| 730 |
729 // It's possible for an async test to call finishJSTest() before js-test-post.js | 731 // It's possible for an async test to call finishJSTest() before js-test-post.js |
730 // has been parsed. | 732 // has been parsed. |
731 function finishJSTest() | 733 function finishJSTest() |
732 { | 734 { |
733 wasFinishJSTestCalled = true; | 735 wasFinishJSTestCalled = true; |
734 if (!self.wasPostTestScriptParsed) | 736 if (!self.wasPostTestScriptParsed) |
735 return; | 737 return; |
736 isSuccessfullyParsed(); | 738 isSuccessfullyParsed(); |
737 if (self.jsTestIsAsync && self.testRunner) | 739 if (self.jsTestIsAsync && self.testRunner) |
738 testRunner.notifyDone(); | 740 testRunner.notifyDone(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 testPassed = function(msg) { | 813 testPassed = function(msg) { |
812 workerPort.postMessage('PASS:' + msg); | 814 workerPort.postMessage('PASS:' + msg); |
813 }; | 815 }; |
814 finishJSTest = function() { | 816 finishJSTest = function() { |
815 workerPort.postMessage('DONE:'); | 817 workerPort.postMessage('DONE:'); |
816 }; | 818 }; |
817 debug = function(msg) { | 819 debug = function(msg) { |
818 workerPort.postMessage(msg); | 820 workerPort.postMessage(msg); |
819 }; | 821 }; |
820 } | 822 } |
OLD | NEW |