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

Unified Diff: LayoutTests/dom/xhtml/level3/core/documentadoptnode04.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/documentadoptnode04.js
diff --git a/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js b/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js
index 5158841345354f5c2bb6374aa9b908654dc49c81..f6ffb2b761e335d19801879176f397e6b5f94420 100644
--- a/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js
+++ b/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js
@@ -116,7 +116,7 @@ function documentadoptnode04() {
domImpl = doc.implementation;
newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
- newAttr = doc.createAttribute("xml:lang");
+ newAttr = doc.createAttributeNS(xmlNS,"xml:lang");
adoptedAttr = newDoc.adoptNode(newAttr);
if(
@@ -135,6 +135,7 @@ newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
isSpecified = adoptedAttr.specified;
assertEquals("documentadoptnode04_nodeName","xml:lang",nodeName);
+ assertEquals("documentadoptnode04_namespaceURI",xmlNS,nodeNamespaceURI);
assertEquals("documentadoptnode04_prefix","xml",nodePrefix);
assertNull("documentadoptnode04_ownerDoc",attrOwnerElem);
assertTrue("documentadoptnode04_specified",isSpecified);
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/documentadoptnode03.js ('k') | LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698