blob: 0ec9bbbc5f79369a4025fa925b0a725527bcc64a [file] [log] [blame]
<html>
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12619">bug 12619</a>:
Non-abbreviated XPaths don't work.</p>
<div id="a"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
try {
result = document.evaluate("//div/ancestor::*", document.body, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if (2 == result.snapshotLength)
document.write("SUCCESS");
else
document.write("FAILURE: " + result.snapshotLength + " result nodes (should be 2)");
} catch (ex) {
document.write("FAILURE: " + ex);
}
</script>
</body>
</html>