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

Unified Diff: LayoutTests/dom/xhtml/level3/core/documentadoptnode02.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/level3/core/documentadoptnode02.js
diff --git a/LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js b/LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js
index 5a51de775b2c61a03d102de4ed4c098f60c2b2ba..0f7084d647a40a1a4529b4e29f79deb1da669f8d 100644
--- a/LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js
+++ b/LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js
@@ -95,11 +95,6 @@ function documentadoptnode02() {
var isSpecified;
var nullDocType = null;
- var firstChild;
- var firstChildValue;
- var secondChild;
- var secondChildType;
- var secondChildName;
var docElem;
var rootNS;
var rootName;
@@ -122,11 +117,6 @@ newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
attr = element.getAttributeNode("class");
adoptedclass = newDoc.adoptNode(attr);
- if(
-
- (adoptedclass != null)
-
- ) {
nodeName = adoptedclass.nodeName;
nodeValue = adoptedclass.nodeValue;
@@ -141,33 +131,6 @@ newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
assertEquals("documentadoptnode02_nodeType",2,nodeType);
assertNull("documentadoptnode02_ownerDoc",attrOwnerElem);
assertTrue("documentadoptnode02_specified",isSpecified);
-firstChild = adoptedclass.firstChild;
-
- assertNotNull("firstChildNotNull",firstChild);
-firstChildValue = firstChild.nodeValue;
-
- if(
- ("Y" == firstChildValue)
- ) {
- secondChild = firstChild.nextSibling;
-
- assertNotNull("secondChildNotNull",secondChild);
-secondChildType = secondChild.nodeType;
-
- assertEquals("secondChildIsEntityReference",5,secondChildType);
- secondChildName = secondChild.nodeName;
-
- assertEquals("secondChildIsEnt1Reference","alpha",secondChildName);
-
- }
-
- else {
- assertEquals("documentadoptnode02_nodeValue","Yα",nodeValue);
-
- }
-
- }
-
}
function runTest() {

Powered by Google App Engine
This is Rietveld 408576698