| 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 28 matching lines...) Expand all Loading... |
| 40 function removeTheDiv() { | 40 function removeTheDiv() { |
| 41 var element = window.document.getElementById("thediv"); | 41 var element = window.document.getElementById("thediv"); |
| 42 element.parentNode.removeChild(element); | 42 element.parentNode.removeChild(element); |
| 43 element = null; | 43 element = null; |
| 44 setTimeout("forceGC();", 0); | 44 setTimeout("forceGC();", 0); |
| 45 } | 45 } |
| 46 | 46 |
| 47 setTimeout("removeTheDiv();", 0); | 47 setTimeout("removeTheDiv();", 0); |
| 48 | 48 |
| 49 </script> | 49 </script> |
| OLD | NEW |