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

Unified Diff: LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 7 months 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/level1/core/hc_attrclonenode1.js
diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js b/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js
index 368c2fbb7fc60d36b4de889bab952f6d316839ad..d989da0b310d9eec55186cb34d075ff400638b72 100644
--- a/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js
+++ b/LayoutTests/dom/xhtml/level1/core/hc_attrclonenode1.js
@@ -84,9 +84,6 @@ function hc_attrclonenode1() {
var attributes;
var titleAttr;
var value;
- var textNode;
- var retval;
- var lastChild;
var clonedTitle;
var docRef = null;
@@ -99,23 +96,13 @@ function hc_attrclonenode1() {
attributes = testNode.attributes;
titleAttr = attributes.getNamedItem("title");
- textNode = doc.createTextNode("terday");
- retval = titleAttr.appendChild(textNode);
clonedTitle = titleAttr.cloneNode(false);
- textNode.nodeValue = "text_node_not_cloned";
value = clonedTitle.value;
+ assertEquals("attrValue","Yes",value);
- assertEquals("attrValue","Yesterday",value);
- value = clonedTitle.nodeValue;
-
- assertEquals("attrNodeValue","Yesterday",value);
- lastChild = clonedTitle.lastChild;
-
- value = lastChild.nodeValue;
-
- assertEquals("lastChildValue","terday",value);
-
+ value = clonedTitle.nodeValue;
+ assertEquals("attrNodeValue","Yes",value);
}
function runTest() {

Powered by Google App Engine
This is Rietveld 408576698