diff options
Diffstat (limited to 'LayoutTests/fast/xpath/xpath-empty-string.html')
-rw-r--r-- | LayoutTests/fast/xpath/xpath-empty-string.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/LayoutTests/fast/xpath/xpath-empty-string.html b/LayoutTests/fast/xpath/xpath-empty-string.html new file mode 100644 index 0000000..06a6519 --- /dev/null +++ b/LayoutTests/fast/xpath/xpath-empty-string.html @@ -0,0 +1,17 @@ +<html> +<head> + <script> + function runTests() { + if (window.layoutTestController) + layoutTestController.dumpAsText(); + + document.evaluate("//a[@id='']",document) + } + </script> +</head> +<body onload="runTests()"> + This tests that parsing an XPath expression that contains an empty string literal doesn't segfault.<br> + SUCCESS: Didn't crash! + +</body> +</html>
\ No newline at end of file |