OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function test() { | 9 function test() { |
10 document.getElementsByTagName("body")[0].removeChild(document.getElement
ById("target")); | 10 document.getElementsByTagName("body")[0].removeChild(document.getElement
ById("target")); |
11 } | 11 } |
12 | 12 |
13 function finish() { | 13 function finish() { |
14 setTimeout(function() { | 14 setTimeout(function() { |
15 if (window.testRunner) | 15 if (window.testRunner) |
16 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
17 }, 300); | 17 }, 300); |
18 } | 18 } |
19 </script> | 19 </script> |
20 <iframe id="target" src="resources/image-load-in-subframe-unload-handler-helper.
html"></iframe> | 20 <iframe id="target" name="target" src="resources/image-load-in-subframe-unload-h
andler-helper.html"></iframe> |
21 This test triggers an unload handler that starts an image load in a different fr
ame (and deletes both frames), but ensures the main frame is not destroyed. We p
ass if we don't crash. | 21 This test triggers an unload handler that starts an image load in a different fr
ame (and deletes both frames), but ensures the main frame is not destroyed. We p
ass if we don't crash. |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |