Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / node-move-to-new-document-crash-main.html
blobe21ea37e3090a2d4f1bdd391617959d96a657444
1 <html>
2 <body>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 description("Tests that moving nodes across documents does not crash.");
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 function runTest()
14 root = document.getElementById('root').contentDocument;
15 test = root.getElementById('test');
16 var doc = document.implementation.createDocument(null, '');
17 doc.adoptNode(test);
18 test.appendChild(root.getElementById('svg').cloneNode(0));
19 document.open();
20 document.write('PASS');
21 document.close();
22 setTimeout('finish();', 0);
25 function finish()
27 gc();
28 document.adoptNode(test);
29 if (window.testRunner)
30 testRunner.notifyDone();
32 </script>
33 <object data="resources/node-move-to-new-document-crash.svg" id="root" onload="runTest()"/></object>
34 </body>
35 </html>