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

Side by Side Diff: LayoutTests/resources/js-test.js

Issue 211623006: Use GCController.collectAll() in gc() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: replace gc() Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698