blob: 42cc97c30e5295d3b9a4f748f13f0f746f9bac8e [file] [log] [blame]
<html>
<body>
<script src="../js/resources/js-test-pre.js"></script>
<script>
description("Tests that moving nodes across documents does not crash.");
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function runTest()
{
root = document.getElementById('root').contentDocument;
test = root.getElementById('test');
var doc = document.implementation.createDocument();
doc.adoptNode(test);
test.appendChild(root.getElementById('svg').cloneNode(0));
document.open();
document.write('PASS');
document.close();
setTimeout('finish();', 0);
}
function finish()
{
gc();
document.adoptNode(test);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<object data="resources/node-move-to-new-document-crash.svg" id="root" onload="runTest()"/></object>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>