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

Side by Side Diff: LayoutTests/plugins/multiple-plugins.html

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 <script> 1 <script>
2 function noop(x) { 2 function noop(x) {
3 } 3 }
4 4
5 function doGC() { 5 function doGC() {
6 if (window.gc) { 6 if (window.GCController)
7 // GC twice to make sure everything is cleaned up. 7 GCController.collectAll();
8 for (var i = 0; i < 4; i++) {
9 window.gc();
10 }
11 }
12 } 8 }
13 9
14 function runtest() { 10 function runtest() {
15 if (window.testRunner) 11 if (window.testRunner)
16 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
17 13
18 doGC(); 14 doGC();
19 15
20 var plug1 = document.getElementById("plug1"); 16 var plug1 = document.getElementById("plug1");
21 var plug2 = document.getElementById("plug2"); 17 var plug2 = document.getElementById("plug2");
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 77
82 Prints "SUCCESS" on success, "FAILURE" on failure. 78 Prints "SUCCESS" on success, "FAILURE" on failure.
83 79
84 <embed id="plug1" type="application/x-webkit-test-netscape"> 80 <embed id="plug1" type="application/x-webkit-test-netscape">
85 <embed id="plug2" type="application/x-webkit-test-netscape"> 81 <embed id="plug2" type="application/x-webkit-test-netscape">
86 82
87 <div id=output>FAILURE</div> 83 <div id=output>FAILURE</div>
88 84
89 </body> 85 </body>
90 86
OLDNEW
« no previous file with comments | « LayoutTests/media/track/tracklist-is-reachable.html ('k') | LayoutTests/plugins/npruntime/leak-window-scriptable-object.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698