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

Unified Diff: LayoutTests/fast/xpath/string-value.html

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 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/fast/xpath/string-value.html
diff --git a/LayoutTests/fast/xpath/string-value.html b/LayoutTests/fast/xpath/string-value.html
index aa0828e2e2634f109647393f0ef95387c2b7d1c7..7e353c37ea52407108b371fd929e8e19a87cb6fd 100644
--- a/LayoutTests/fast/xpath/string-value.html
+++ b/LayoutTests/fast/xpath/string-value.html
@@ -25,20 +25,18 @@
ATTR = doc.documentElement.getAttributeNode("attr");
- CDATA = doc.documentElement.firstChild;
- while (CDATA.nodeType != Node.CDATA_SECTION_NODE)
- CDATA = CDATA.nextSibling;
-
TEXT = doc.documentElement.firstChild;
+ TEXTANDCDATA = doc.documentElement.childNodes[3];
+
EMPTY = doc.documentElement.lastChild;
shouldBe("doc.evaluate('.', doc, null, XPathResult.STRING_TYPE, null).stringValue", "'0 1a-cdata-b2'");
shouldBe("doc.evaluate('.', doc.documentElement, null, XPathResult.STRING_TYPE, null).stringValue", "'0 1a-cdata-b2'");
shouldBe("doc.evaluate('.', PI, null, XPathResult.STRING_TYPE, null).stringValue", "'\"Data\" '");
shouldBe("doc.evaluate('.', COMMENT, null, XPathResult.STRING_TYPE, null).stringValue", "' comment '");
- shouldBe("doc.evaluate('.', CDATA, null, XPathResult.STRING_TYPE, null).stringValue", "'-cdata-'");
shouldBe("doc.evaluate('.', TEXT, null, XPathResult.STRING_TYPE, null).stringValue", "'0 '");
+ shouldBe("doc.evaluate('.', TEXTANDCDATA, null, XPathResult.STRING_TYPE, null).stringValue", "'a-cdata-b'");
shouldBe("doc.evaluate('.', EMPTY, null, XPathResult.STRING_TYPE, null).stringValue", "''");
shouldBe("doc.evaluate('.', ATTR, null, XPathResult.STRING_TYPE, null).stringValue", "'<&nbsp;>'");
« no previous file with comments | « LayoutTests/fast/dom/SelectorAPI/resig-SelectorsAPI-test.xhtml ('k') | LayoutTests/fast/xpath/string-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698