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

Unified Diff: LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.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/nodeisequalnode20.js
diff --git a/LayoutTests/dom/xhtml/level3/core/nodeisequalnode06.js b/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js
similarity index 84%
copy from LayoutTests/dom/xhtml/level3/core/nodeisequalnode06.js
copy to LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js
index d1a139fe7bda54d15333ce8ff990c59511f5d1de..ffc368407fc989ae944154e8811c0593f3dde5f9 100644
--- a/LayoutTests/dom/xhtml/level3/core/nodeisequalnode06.js
+++ b/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js
@@ -17,7 +17,7 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* @return uri identifier of test
*/
function getTargetURI() {
- return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode06";
+ return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode20";
}
var docsLoaded = -1000000;
@@ -75,21 +75,19 @@ function loadComplete() {
/**
*
-
-
- Using isEqualNode check if 2 Element nodes having the same nodeName and namespaceURI attribute
- are equal.
+ Using isEqualNode check if an Element and an Attr nodes having the same nodeName
+ and namsepaceURI are not equal.
* @author IBM
* @author Neil Delima
* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode
*/
-function nodeisequalnode06() {
+function nodeisequalnode20() {
var success;
- if(checkInitialization(builder, "nodeisequalnode06") != null) return;
+ if(checkInitialization(builder, "nodeisequalnode20") != null) return;
var doc;
+ var attr1;
var elem1;
- var elem2;
var isEqual;
var docRef = null;
@@ -98,9 +96,9 @@ function nodeisequalnode06() {
}
doc = load(docRef, "doc", "hc_staff");
elem1 = doc.createElementNS("http://www.w3.org/1999/xhtml","xhtml:html");
- elem2 = doc.createElementNS("http://www.w3.org/1999/xhtml","xhtml:html");
- isEqual = elem1.isEqualNode(elem2);
- assertTrue("nodeisequalnode06",isEqual);
+ attr1 = doc.createAttributeNS("http://www.w3.org/1999/xhtml","xhtml:html");
+ isEqual = attr1.isEqualNode(elem1);
+ assertFalse("nodeisequalnode20",isEqual);
}
@@ -108,5 +106,5 @@ function nodeisequalnode06() {
function runTest() {
- nodeisequalnode06();
+ nodeisequalnode20();
}
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.xhtml ('k') | LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698