Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / remove-frame-with-scrollbars-crash.html
blobc85b59e4897bc141c1754834b7fb4edcaf7206d0
1 <p>This test checks for a crash when removing an iframe with scrollbars from a document. See &lt;rdar://problem/5061807&gt;.</p>
2 <p>If the test passes, you'll see a PASS message below.</p>
3 <hr>
4 <pre id="console"></pre>
5 <iframe id="iframe" src="data:text/html,<body style='overflow-x: hidden'><div style='height:1000px'</body>" style="width:152px; height:300px"></iframe>
7 <script>
8 function log(s)
10 document.getElementById("console").appendChild(document.createTextNode(s));
13 var iframe = document.getElementById("iframe");
15 function destroyIframe()
17 iframe.parentNode.removeChild(iframe);
18 log("PASS: Yout didn't crash.");
19 testRunner.notifyDone();
22 iframe.onload = function() { setTimeout(destroyIframe, 0); }
23 testRunner.dumpAsText();
24 testRunner.waitUntilDone();
25 </script>