mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove tests/content/test_document_adoptNode.html.
It is already covered by: dom/nodes/Document-adoptNode.html
This commit is contained in:
parent
182a9a70de
commit
b4151550cb
1 changed files with 0 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="harness.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="foo"><div id="bar"></div></div>
|
|
||||||
<script>
|
|
||||||
let foo = document.getElementById("foo");
|
|
||||||
let doc = document.implementation.createHTMLDocument("title");
|
|
||||||
|
|
||||||
is(foo.ownerDocument, document);
|
|
||||||
|
|
||||||
let adopted_foo = doc.adoptNode(foo);
|
|
||||||
is(document.getElementById("foo"), null);
|
|
||||||
|
|
||||||
is(foo, adopted_foo);
|
|
||||||
is(foo.ownerDocument, doc);
|
|
||||||
is(foo.parentNode, null);
|
|
||||||
is(foo.childNodes.length, 1);
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Add table
Add a link
Reference in a new issue