Test LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html Detail

id
LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html
type
layouttest
version
0
enabled
1
tags
flags
sections
url
http://localhost:8888/LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html
file
LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html

results
Firefox 2 Win (2.0.0.20) Firefox 2 Lin (2.0.0.20) Firefox 3 Win (3.0.6) Firefox 3 Lin (3.0.6) Firefox 3.1 Win (3.1b2) Firefox 3.1 Lin (3.1b2) Firefox trunk Win (2009 02 22) Firefox trunk Lin (2009 02 22) Safari 3 Win (3.2) Safari trunk Win (41121) Opera 9 Win (9.62) Opera 9 Lin (9.62) IE 6 Win (6) IE 7 Win (7) IE 8 Win (8rc1)
PASS PASS PASS PASS PASS PASS PASS PASS PASS PASS FAIL FAIL FAIL FAIL FAIL

Layouttest detail

expected:
PASS actual is "abcabcabc"
PASS successfullyParsed is true

TEST COMPLETE

file:
<!-- https://sourceforge.net/tracker/?func=detail&atid=106473&aid=418317&group_id=6473 -->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../../../js/resources/js-test-style.css">
<script src="../../../js/resources/js-test-pre.js"></script>
</head>
<body>
<div id="console"></div>

<script>
SRC_1 = '<?xml version="1.0" encoding="utf-8"?>\
<doc>\
<elem>abc</elem>\
<elem><![CDATA[abc]]></elem>\
<elem>a<![CDATA[b]]>c</elem>\
</doc>';

    doc = (new DOMParser).parseFromString(SRC_1, "application/xml");

    EXPR = '/doc/elem/text()'
    nodeset = doc.evaluate(EXPR, doc, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);
    actual = "";
    while (currNode = nodeset.iterateNext())
        actual += currNode.nodeValue;
    
    // According to DOM XPath working group note, this should be "abcabca", but we'll rather match Firefox.
    // See <http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#TextNodes>.
    shouldBe('actual', '"abcabcabc"')

    var successfullyParsed = true;

</script>
<script src="../../../js/resources/js-test-post.js"></script>
</body>
</html>
file frame show/hide: