Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / insertedIntoDocument-iframe.html
blobe22922fd4343a5e3d6c61c827c421f3fbafa15f3
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 gc = window.gc || function()
11 if (window.GCController)
12 return GCController.collect();
14 for (var i = 0; i < 10000; ++i)
15 var s = new String("AAAA");
18 window.onload = function()
20 parent = document.createElement("div");
21 parent.innerHTML = "<iframe></iframe><element id='element'/>";
23 iframe = parent.firstChild;
24 iframe.src = "javascript:top.document.body.removeChild(top.parent)";
26 document.body.appendChild(parent);
28 parent = iframe = null;
29 gc();
31 setTimeout(finishTest, 0);
34 finishTest = function()
36 document.getElementById("element");
38 if (window.testRunner)
39 testRunner.notifyDone();
41 </script>
42 </head>
43 <body>PASS</body>
44 </html>