Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / move-detached-child-in-range.html
blob116cdb77619bb152270ccbdcdd57086061a3db45
1 <html>
2 <head>
3 <script src="../../resources/gc.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
10 function go() {
11 frame = document.getElementById('frame');
12 node2 = document.createElement('b');
13 node1 = document.createElement('h1');
14 node1.appendChild(node2);
15 range = document.createRange();
16 range.selectNodeContents(node1);
18 frame.contentDocument.body.appendChild(node1);
20 node1.removeChild(node2);
21 delete node2;
22 gc();
23 document.body.innerText = 'Final end container, offset: ' + range.endContainer + ', ' + range.endOffset;
24 if (window.testRunner)
25 testRunner.notifyDone()
27 </script>
28 </head>
29 <body onload="go()">
30 FAIL
31 <iframe id="frame"></iframe>
32 </body>
33 </html>