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

Unified Diff: LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.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/dom/xhtml/level3/core/nodecomparedocumentposition11.js
diff --git a/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js b/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js
index 78956e5b4906a9d04e1dad69d9a0b9b79ecc3845..e1089c1b20edce46e8684d73df71ae31c33f7510 100644
--- a/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js
+++ b/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js
@@ -99,8 +99,8 @@ function nodecomparedocumentposition11() {
doc = load(docRef, "doc", "hc_staff");
elemList = doc.getElementsByTagName("p");
elem = elemList.item(3);
- newAttr = doc.createAttribute("xml:lang");
- replacedAttr = elem.setAttributeNode(newAttr);
+ newAttr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang");
+ replacedAttr = elem.setAttributeNodeNS(newAttr);
attrPosition = newAttr.compareDocumentPosition(doc);
assertEquals("nodecomparedocumentpositionPRECEDINGContains11",10,attrPosition);

Powered by Google App Engine
This is Rietveld 408576698