Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: LayoutTests/fast/dom/Node/script-tests/initial-values.js

Issue 740223003: Revive tests for Document.createAttributeNS() and Element.setAttributeNodeNS() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: deprecation messages Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Node/script-tests/initial-values.js
diff --git a/LayoutTests/fast/dom/Node/script-tests/initial-values.js b/LayoutTests/fast/dom/Node/script-tests/initial-values.js
index cfcd9a2b98c652501f7240b22de65826a68d12bf..23dbdc65006c60cc4a4960ce90abc6040517c762 100644
--- a/LayoutTests/fast/dom/Node/script-tests/initial-values.js
+++ b/LayoutTests/fast/dom/Node/script-tests/initial-values.js
@@ -13,6 +13,16 @@ shouldBe("attr.namespaceURI", "null");
shouldBe("attr.prefix", "null");
shouldBe("attr.value", "''");
+debug("Attribute creation using createElementNS on an HTML doc:")
+attr = document.createAttributeNS("http://www.example.com", "example:foo");
+shouldBe("attr.nodeName", "'example:foo'");
+shouldBe("attr.name", "'example:foo'");
+shouldBe("attr.localName", "'foo'");
+shouldBe("attr.namespaceURI", "'http://www.example.com'");
+shouldBe("attr.prefix", "'example'");
+shouldBe("attr.nodeValue", "''");
+shouldBe("attr.value", "''");
+
debug("Attribute creation using createElement on an XHTML doc:")
attr = xmlDoc.createAttribute("foo");
shouldBe("attr.nodeName", "'foo'");
@@ -24,6 +34,16 @@ shouldBe("attr.namespaceURI", "null");
shouldBe("attr.prefix", "null");
shouldBe("attr.value", "''");
+debug("Attribute creation using createElementNS on an XHTML doc:")
+attr = xmlDoc.createAttributeNS("http://www.example.com", "example:foo");
+shouldBe("attr.nodeName", "'example:foo'");
+shouldBe("attr.name", "'example:foo'");
+shouldBe("attr.localName", "'foo'");
+shouldBe("attr.namespaceURI", "'http://www.example.com'");
+shouldBe("attr.prefix", "'example'");
+shouldBe("attr.nodeValue", "''");
+shouldBe("attr.value", "''");
+
var comment = document.createComment("foo");
shouldBe("comment.nodeName", "'#comment'");
shouldBe("comment.localName", "null");
« no previous file with comments | « LayoutTests/fast/dom/Node/initial-values-expected.txt ('k') | LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698