Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLFormElement / adopt-assertion.html
blobe0c83303c00b86f0a4f1ca493351a2a8fa7767bb
1 <p>
2 Test for <i><a href="https://bugs.webkit.org/attachment.cgi?id=30159">https://bugs.webkit.org/attachment.cgi?id=30159</a>
3 Assertion failure in Node::setDocument()
4 (willMoveToNewOwnerDocumentWasCalled) when adopting a &lt;form> element</i>.
5 </p>
6 <p>
7 The test passed if the assertion did not fail.
8 </p>
9 <form id="target"></form>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var otherDocument = document.implementation.createHTMLDocument();
15 otherDocument.adoptNode(document.getElementById("target"));
16 </script>