| Index: LayoutTests/fast/dom/Document/adopt-node-with-doctype.html
|
| diff --git a/LayoutTests/fast/dom/Document/adopt-node-with-doctype.html b/LayoutTests/fast/dom/Document/adopt-node-with-doctype.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b115d84e93f4fe3619b77d8cd1b63a46a92f0d13
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/Document/adopt-node-with-doctype.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>Document.adoptNode</title>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<link rel="stylesheet" href="../../../resources/testharness.css">
|
| +</head>
|
| +<body>
|
| +<p>This page tests the DOM document.adoptNode method with DocumentType.</p>
|
| +<script>
|
| +test(function() {
|
| + var doctype = document.doctype;
|
| + assert_equals(doctype.parentNode, document)
|
| + assert_equals(doctype.ownerDocument, document)
|
| + assert_equals(document.adoptNode(doctype), doctype)
|
| + assert_equals(doctype.parentNode, null)
|
| + assert_equals(doctype.ownerDocument, document)
|
| +}, "Explicitly adopting a DocumentType should work.")
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|