Index: LayoutTests/fast/dom/HTMLDocument/clone-node.html |
diff --git a/LayoutTests/fast/dom/HTMLDocument/clone-node.html b/LayoutTests/fast/dom/HTMLDocument/clone-node.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94b7a12e67ee285d14a9b50e007fda7fb12a213e |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLDocument/clone-node.html |
@@ -0,0 +1,25 @@ |
+<!-- quirks mode --> |
+<title>Tests HTMLDocument cloneNode</title> |
+<link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode"> |
+<script src="../../js/resources/js-test-pre.js"></script> |
+<script> |
+description('Tests cloneNode for HTMLDocument.'); |
+ |
+function className(object) { |
+ return Object.prototype.toString.call(object).slice(8, -1); |
+} |
+ |
+shouldBe('document.cloneNode(false).__proto__', 'HTMLDocument.prototype'); |
+shouldBeEqualToString('className(document.cloneNode(false))', 'HTMLDocument'); |
+shouldBe('document.cloneNode(true).title', 'document.title'); |
+shouldBeEqualToString('document.cloneNode(true).compatMode', 'BackCompat'); |
+ |
+var doc = document.implementation.createHTMLDocument('title'); |
+shouldBe('doc.cloneNode(false).__proto__', 'HTMLDocument.prototype'); |
+shouldBeEqualToString('className(doc.cloneNode(false))', 'HTMLDocument'); |
+shouldBe('doc.cloneNode(true).title', 'doc.title'); |
+shouldBeEqualToString('doc.cloneNode(true).compatMode', 'CSS1Compat'); |
+ |
+</script> |
+<script src="../../js/resources/js-test-post.js"></script> |
+</body> |