Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / insertedIntoDocument-child.html
blob37c29425dc10a1e3a35b3c9c79e20540115f8f11
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 object = document.createElement("object");
21 object.setAttribute("form", "a");
23 attr = document.createAttribute("width");
24 object.setAttributeNode(attr);
26 embed = document.createElement("embed");
27 embed.setAttribute("width", 2);
28 object.appendChild(embed);
30 document.body.appendChild(object);
32 object = embed = attr = null;
33 gc();
35 setTimeout(finishTest, 0);
38 finishTest = function()
40 form = document.createElement("form");
41 form.id = "form";
42 document.body.appendChild(form);
44 if (window.testRunner)
45 testRunner.notifyDone();
47 </script>
48 </head>
49 <body>PASS</body
50 </html>