OLD | NEW |
1 <script src="/js-test-resources/js-test-pre.js"></script> | 1 <script src="/js-test-resources/js-test.js"></script> |
2 <script> | 2 <script> |
3 | 3 |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.waitUntilDone(); | 5 testRunner.waitUntilDone(); |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 } | 7 } |
8 | 8 |
9 function loaded() { | 9 function loaded() { |
10 // If the garbage collection causes the image load to stop and therefore
causes the load event to fire on the main frame, we failed. | 10 // If the garbage collection causes the image load to stop and therefore
causes the load event to fire on the main frame, we failed. |
11 alert("FAIL: The load event fired"); | 11 alert("FAIL: The load event fired"); |
(...skipping 27 matching lines...) Expand all Loading... |
39 function removeTheDiv() { | 39 function removeTheDiv() { |
40 var element = window.document.getElementById("thediv"); | 40 var element = window.document.getElementById("thediv"); |
41 element.parentNode.removeChild(element); | 41 element.parentNode.removeChild(element); |
42 element = null; | 42 element = null; |
43 setTimeout("forceGC();", 0); | 43 setTimeout("forceGC();", 0); |
44 } | 44 } |
45 | 45 |
46 setTimeout("removeTheDiv();", 0); | 46 setTimeout("removeTheDiv();", 0); |
47 | 47 |
48 </script> | 48 </script> |
OLD | NEW |