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

Unified Diff: LayoutTests/dom/xhtml/level3/core/documentadoptnode01.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/documentadoptnode01.js
diff --git a/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js b/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
index 0bc54d1a89785c92b2f4f3a96211fb98278d2222..4021a6279a6bdf42f8dacd0e53d3be640f1f084c 100644
--- a/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
+++ b/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
@@ -89,11 +89,6 @@ function documentadoptnode01() {
var nodeName;
var nodeType;
var nodeValue;
- var firstChild;
- var firstChildValue;
- var secondChild;
- var secondChildType;
- var secondChildName;
var docRef = null;
if (typeof(this.doc) != 'undefined') {
@@ -105,11 +100,6 @@ function documentadoptnode01() {
attr = element.getAttributeNode("class");
adoptedclass = doc.adoptNode(attr);
- if(
-
- (adoptedclass != null)
-
- ) {
nodeName = adoptedclass.nodeName;
nodeValue = adoptedclass.nodeValue;
@@ -121,33 +111,6 @@ function documentadoptnode01() {
assertEquals("documentadoptode01_nodeName","class",nodeName);
assertEquals("documentadoptNode01_nodeType",2,nodeType);
assertNull("documentadoptnode01_ownerDoc",attrOwnerElem);
- 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("documentadoptnode01_nodeValue","Yα",nodeValue);
-
- }
-
- }
-
}
function runTest() {

Powered by Google App Engine
This is Rietveld 408576698