mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
25
tests/content/test_document_adoptNode.html
Normal file
25
tests/content/test_document_adoptNode.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<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);
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="foo"><div id="bar"></div></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue