Index: LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js |
diff --git a/LayoutTests/dom/xhtml/level3/core/nodegettextcontent07.js b/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js |
similarity index 82% |
copy from LayoutTests/dom/xhtml/level3/core/nodegettextcontent07.js |
copy to LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js |
index bd17b4d3258398fa54cad2f6178d574f505fbf4e..d34f5aada22d155fe5be625028975f0e4d9c0aa6 100644 |
--- a/LayoutTests/dom/xhtml/level3/core/nodegettextcontent07.js |
+++ b/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.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/nodegettextcontent07"; |
+ return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodegettextcontent08"; |
} |
var docsLoaded = -1000000; |
@@ -46,7 +46,7 @@ function setUpPage() { |
if (typeof(this.doc) != 'undefined') { |
docRef = this.doc; |
} |
- docsLoaded += preload(docRef, "doc", "hc_staff"); |
+ docsLoaded += preload(docRef, "doc", "barfoo"); |
if (docsLoaded == 1) { |
setUpPageStatus = 'complete'; |
@@ -82,27 +82,29 @@ function loadComplete() { |
* @author Neil Delima |
* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-textContent |
*/ |
-function nodegettextcontent07() { |
+function nodegettextcontent08() { |
var success; |
- if(checkInitialization(builder, "nodegettextcontent07") != null) return; |
+ if(checkInitialization(builder, "nodegettextcontent08") != null) return; |
var doc; |
var elemList; |
var elem; |
+ var att; |
var attr; |
+ var replacedAttr; |
var textContent; |
var docRef = null; |
if (typeof(this.doc) != 'undefined') { |
docRef = this.doc; |
} |
- doc = load(docRef, "doc", "hc_staff"); |
- elemList = doc.getElementsByTagName("p"); |
- elem = elemList.item(3); |
- elem.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang","en-US"); |
+ doc = load(docRef, "doc", "barfoo"); |
+ elem = doc.createElementNS("http://www.w3.org/1999/xhtml","p"); |
+ att = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); |
+ replacedAttr = elem.setAttributeNodeNS(att); |
attr = elem.getAttributeNodeNS("http://www.w3.org/XML/1998/namespace","lang"); |
textContent = attr.textContent; |
- assertEquals("nodegettextcontent07","en-US",textContent); |
+ assertEquals("nodegettextcontent08","",textContent); |
} |
@@ -110,5 +112,5 @@ function nodegettextcontent07() { |
function runTest() { |
- nodegettextcontent07(); |
+ nodegettextcontent08(); |
} |