mirror of
https://github.com/servo/servo.git
synced 2025-07-14 02:43:42 +01:00
auto merge of #3945 : Ms2ger/servo/rm-tests, r=Manishearth
This commit is contained in:
commit
d63a35012c
2 changed files with 0 additions and 43 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>
|
|
|
@ -1,20 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="harness.js"></script>
|
|
||||||
<script>
|
|
||||||
// test1: BackCompat
|
|
||||||
{
|
|
||||||
is(document.compatMode, "BackCompat", "test1-0, BackCompat");
|
|
||||||
}
|
|
||||||
|
|
||||||
// test2: Non-parsed documents
|
|
||||||
{
|
|
||||||
var xmldoc = new Document;
|
|
||||||
is(xmldoc.compatMode, "CSS1Compat", "test2-0, Non-parsed documents");
|
|
||||||
|
|
||||||
var htmldoc = document.implementation.createHTMLDocument("title");
|
|
||||||
is(htmldoc.compatMode, "CSS1Compat", "test2-1, Non-parsed documents");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
</html>
|
|
Loading…
Add table
Add a link
Reference in a new issue