summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/xpath/reverse-axes-expected.txt
blob: 14603ccc37164221682fc4c2e8feda9fc84756ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Test for bug 15436: Wrong proximity positions for XPath reverse axes.

PASS document.evaluate('preceding-sibling::*[1]', document.getElementById('d3'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd2'
PASS document.evaluate('preceding::*[1]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd21'
PASS document.evaluate('preceding::*[2]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd2'
PASS document.evaluate('preceding::*[3]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd1'
PASS document.evaluate('preceding::*[4]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName is 'A'
PASS document.evaluate('preceding::*[5]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName is 'P'
PASS document.evaluate('ancestor::*[1]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd3'
PASS document.evaluate('ancestor-or-self::*[1]', document.getElementById('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id is 'd31'
PASS successfullyParsed is true

TEST COMPLETE