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

Side by Side Diff: LayoutTests/storage/websql/multiple-databases-garbage-collection.js

Issue 211933008: Remove multiple GC calls and replace GCController.collect calls with GCController.collectAll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert change to worker-event-listener 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
OLDNEW
1 function GC() 1 function GC()
2 { 2 {
3 // Force GC. 3 // Force GC.
4 if (window.GCController) 4 if (window.GCController)
5 GCController.collect(); 5 GCController.collectAll();
6 else { 6 else {
7 for (var i = 0; i < 10000; ++i) { 7 for (var i = 0; i < 10000; ++i) {
8 ({ }); 8 ({ });
9 } 9 }
10 } 10 }
11 } 11 }
12 12
13 // Variable for the database that will never be forgotten 13 // Variable for the database that will never be forgotten
14 var persistentDB = 0; 14 var persistentDB = 0;
15 // Variable for the forgotten database 15 // Variable for the forgotten database
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 tx.executeSql("INSERT INTO DataTest (randomData) VALUES (1)", [] ); 47 tx.executeSql("INSERT INTO DataTest (randomData) VALUES (1)", [] );
48 }); 48 });
49 }, function(err) { 49 }, function(err) {
50 log("Persistent Database Transaction Errored - " + err); 50 log("Persistent Database Transaction Errored - " + err);
51 checkCompletion(); 51 checkCompletion();
52 }, function() { 52 }, function() {
53 log("Persistent Database Transaction Complete"); 53 log("Persistent Database Transaction Complete");
54 checkCompletion(); 54 checkCompletion();
55 }); 55 });
56 } 56 }
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/cursor-cast.html ('k') | LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698