Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / collection-nameditem-move-between-documents.html
blobaa025a97b924eb94637ce078f2ac47a32a173501
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="test">
8 <div id="console"></div>
9 </body>
10 <script>
11 window.jsTestIsAsync = true;
13 var element, children;
15 window.onload = function()
17 element = document.createElement("div");
18 var child = element.appendChild(document.createElement("div"));
19 child.id = "child";
21 children = element.children;
22 children.namedItem("child");
24 var doc = document.implementation.createHTMLDocument();
25 doc.adoptNode(element);
26 element.removeChild(child);
27 child = null;
29 gc();
30 setTimeout(step2, 100);
33 function step2()
35 document.adoptNode(element);
36 shouldBeNull("children.namedItem('child')");
37 finishJSTest();
39 </script>
40 </html>