Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / replaced / frame-removed-during-resize-smaller.html
blob6b69a11a6306ddda263d263ceb4a520b78c16093
1 <script>
2 if (window.testRunner)
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 function iframeLoaded()
10 var result = document.getElementById("result");
11 var iframe = document.getElementById("target");
12 iframe.contentWindow.addEventListener("resize", function(event) {
13 iframe.parentNode.removeChild(iframe);
14 result.innerHTML = "COMPLETE";
15 if (window.testRunner)
16 testRunner.notifyDone();
17 }, false);
18 iframe.offsetTop;
19 iframe.style.height = "100px";
20 result.innerHTML = "STILL RUNNING";
22 </script>
23 <p>
24 Test order of frame's resize handler when we remove the frame during a resizing of the frame to a small size.
25 </p>
26 <div id="result">UNKNOWN</div>
27 <iframe onload="iframeLoaded()" id="target" src="data:text/html,"></iframe>