| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <script src="xpath-test-pre.js"></script> | 5 <script src="xpath-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15436">bug 15436</a>
: | 8 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15436">bug 15436</a>
: |
| 9 Wrong proximity positions for XPath reverse axes.</p> | 9 Wrong proximity positions for XPath reverse axes.</p> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 shouldBe("document.evaluate('preceding::*[2]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d2'")
; | 28 shouldBe("document.evaluate('preceding::*[2]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d2'")
; |
| 29 shouldBe("document.evaluate('preceding::*[3]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d1'")
; | 29 shouldBe("document.evaluate('preceding::*[3]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d1'")
; |
| 30 shouldBe("document.evaluate('preceding::*[4]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName", "'
A'"); | 30 shouldBe("document.evaluate('preceding::*[4]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName", "'
A'"); |
| 31 shouldBe("document.evaluate('preceding::*[5]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName", "'
P'"); | 31 shouldBe("document.evaluate('preceding::*[5]', document.getElementById('d31'
), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.tagName", "'
P'"); |
| 32 | 32 |
| 33 shouldBe("document.evaluate('ancestor::*[1]', document.getElementById('d31')
, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d3'"); | 33 shouldBe("document.evaluate('ancestor::*[1]', document.getElementById('d31')
, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id", "'d3'"); |
| 34 | 34 |
| 35 shouldBe("document.evaluate('ancestor-or-self::*[1]', document.getElementByI
d('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id",
"'d31'"); | 35 shouldBe("document.evaluate('ancestor-or-self::*[1]', document.getElementByI
d('d31'), null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue.id",
"'d31'"); |
| 36 | 36 |
| 37 </script> | 37 </script> |
| 38 <script src="../js/resources/js-test-post.js"></script> | |
| 39 </body> | 38 </body> |
| 40 </html> | 39 </html> |
| OLD | NEW |