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 description, debug, successfullyParsed; | 9 var description, debug, successfullyParsed; |
10 | 10 |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 testFailed("Unexpected error '" + message + "'"); | 644 testFailed("Unexpected error '" + message + "'"); |
645 expectedErrorMessage = undefined; | 645 expectedErrorMessage = undefined; |
646 return; | 646 return; |
647 } | 647 } |
648 | 648 |
649 testFailed("expectError() not called before shouldHaveHadError()"); | 649 testFailed("expectError() not called before shouldHaveHadError()"); |
650 } | 650 } |
651 | 651 |
652 function gc() { | 652 function gc() { |
653 if (typeof GCController !== "undefined") | 653 if (typeof GCController !== "undefined") |
654 GCController.collect(); | 654 GCController.collectAll(); |
655 else { | 655 else { |
656 var gcRec = function (n) { | 656 var gcRec = function (n) { |
657 if (n < 1) | 657 if (n < 1) |
658 return {}; | 658 return {}; |
659 var temp = {i: "ab" + i + (i / 100000)}; | 659 var temp = {i: "ab" + i + (i / 100000)}; |
660 temp += "foo"; | 660 temp += "foo"; |
661 gcRec(n-1); | 661 gcRec(n-1); |
662 }; | 662 }; |
663 for (var i = 0; i < 1000; i++) | 663 for (var i = 0; i < 1000; i++) |
664 gcRec(10); | 664 gcRec(10); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 testPassed = function(msg) { | 765 testPassed = function(msg) { |
766 workerPort.postMessage('PASS:' + msg); | 766 workerPort.postMessage('PASS:' + msg); |
767 }; | 767 }; |
768 finishJSTest = function() { | 768 finishJSTest = function() { |
769 workerPort.postMessage('DONE:'); | 769 workerPort.postMessage('DONE:'); |
770 }; | 770 }; |
771 debug = function(msg) { | 771 debug = function(msg) { |
772 workerPort.postMessage(msg); | 772 workerPort.postMessage(msg); |
773 }; | 773 }; |
774 } | 774 } |
OLD | NEW |