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", "'< >'"); |