Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / node-move-to-new-document-crash-main.html
1 <html>
2 <body>
3 <script src="../js/resources/js-test-pre.js"></script>
4 <script>
5 description("Tests that moving nodes across documents does not crash.");
6
7 if (window.testRunner) {
8     testRunner.dumpAsText();
9     testRunner.waitUntilDone();
10 }
11
12 function runTest()
13 {
14     root = document.getElementById('root').contentDocument;
15     test = root.getElementById('test');
16     var doc = document.implementation.createDocument();
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);
23 }
24
25 function finish()
26 {
27     gc();
28     document.adoptNode(test);
29     if (window.testRunner)
30         testRunner.notifyDone();
31 }
32 </script>
33 <object data="resources/node-move-to-new-document-crash.svg" id="root" onload="runTest()"/></object>
34 <script src="../js/resources/js-test-post.js"></script>
35 </body>
36 </html>