diff options
Diffstat (limited to 'LayoutTests/fast/xpath/ancestor-axis.html')
-rw-r--r-- | LayoutTests/fast/xpath/ancestor-axis.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/LayoutTests/fast/xpath/ancestor-axis.html b/LayoutTests/fast/xpath/ancestor-axis.html new file mode 100644 index 0000000..cb75273 --- /dev/null +++ b/LayoutTests/fast/xpath/ancestor-axis.html @@ -0,0 +1,24 @@ +<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.layoutTestController) + layoutTestController.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> |