OLD | NEW |
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 Loading... |
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 |
OLD | NEW |