OLD | NEW |
1 <script> | 1 <script> |
2 if (window.layoutTestController) | 2 if (window.layoutTestController) |
3 { | 3 { |
4 layoutTestController.dumpAsText(); | 4 layoutTestController.dumpAsText(); |
5 layoutTestController.waitUntilDone(); | 5 layoutTestController.waitUntilDone(); |
6 } | 6 } |
7 | 7 |
8 function iframeLoaded() | 8 function iframeLoaded() |
9 { | 9 { |
10 var result = document.getElementById("result"); | 10 var result = document.getElementById("result"); |
11 var iframe = document.getElementById("target"); | 11 var iframe = document.getElementById("target"); |
12 iframe.contentWindow.addEventListener("resize", function(event) { | 12 iframe.contentWindow.addEventListener("resize", function(event) { |
13 iframe.parentNode.removeChild(iframe); | 13 iframe.parentNode.removeChild(iframe); |
14 result.innerHTML = "COMPLETE"; | 14 result.innerHTML = "COMPLETE"; |
15 if (window.layoutTestController) | 15 if (window.layoutTestController) |
16 layoutTestController.notifyDone(); | 16 layoutTestController.notifyDone(); |
17 }, false); | 17 }, false); |
18 iframe.offsetTop; | 18 iframe.offsetTop; |
19 iframe.style.height = "100px"; | 19 iframe.style.height = "100px"; |
20 result.innerHTML = "STILL RUNNING"; | 20 result.innerHTML = "STILL RUNNING"; |
21 } | 21 } |
22 </script> | 22 </script> |
23 <p> | 23 <p> |
24 Test order of frame's resize handler when we remove the frame during a resiz
ing of the frame to a small size. | 24 Test order of frame's resize handler when we remove the frame during a resiz
ing of the frame to a small size. |
25 </p> | 25 </p> |
26 <div id="result">UNKNOWN</div> | 26 <div id="result">UNKNOWN</div> |
27 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe> | 27 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe> |
OLD | NEW |