3 <script src=
"../../resources/js-test.js"></script>
5 description("Tests that moving nodes across documents does not crash.");
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
14 root
= document
.getElementById('root').contentDocument
;
15 test
= root
.getElementById('test');
16 var doc
= document
.implementation
.createDocument(null, '');
18 test
.appendChild(root
.getElementById('svg').cloneNode(0));
20 document
.write('PASS');
22 setTimeout('finish();', 0);
28 document
.adoptNode(test
);
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
33 <object data=
"resources/node-move-to-new-document-crash.svg" id=
"root" onload=
"runTest()"/></object>