summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/xpath/implicit-node-args.html
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-07-08 16:59:07 +0100
committerBen Murdoch <benm@google.com>2010-07-09 15:43:53 +0100
commit5f90462bbf4efb0ac7bb65a852d5559d0ab30f0b (patch)
tree2b300793b3246d2e70cbca389b56a360f02fa49b /LayoutTests/fast/xpath/implicit-node-args.html
parented49531d2d6aa65c37a129aee55887dff1cf188b (diff)
downloadexternal_webkit-5f90462bbf4efb0ac7bb65a852d5559d0ab30f0b.zip
external_webkit-5f90462bbf4efb0ac7bb65a852d5559d0ab30f0b.tar.gz
external_webkit-5f90462bbf4efb0ac7bb65a852d5559d0ab30f0b.tar.bz2
Add fast/xpath tests to the tree at the current webkit revision 62496. They all pass.
Note the addition of the android-v8 specific result for fast/xpath/nsresolver-exception.html (this is added due to a V8 exception printing difference). Change-Id: I685cb62a438b742cba3f7496b2e1bdad9a7d8d82
Diffstat (limited to 'LayoutTests/fast/xpath/implicit-node-args.html')
-rw-r--r--LayoutTests/fast/xpath/implicit-node-args.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/LayoutTests/fast/xpath/implicit-node-args.html b/LayoutTests/fast/xpath/implicit-node-args.html
new file mode 100644
index 0000000..52df68a
--- /dev/null
+++ b/LayoutTests/fast/xpath/implicit-node-args.html
@@ -0,0 +1,26 @@
+<html>
+ <body>
+ <div style="display:none">123</div>
+ <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12602">bug 12602</a>:
+ </p>
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var tests = [
+ "//div[string() = '123']"
+ , "//div[normalize-space() = '123']"
+ , "//div[string-length() = 3]"
+ , "//div[number() = 123]"
+ ];
+
+ while (test = tests.pop()) {
+ var result = document.evaluate(test, document.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
+ if (result.snapshotLength == 1)
+ document.write("<pre>" + test + ": SUCCESS</pre>");
+ else
+ document.write("<pre>" + test + ": FAILURE. " + result.snapshotLength + " node(s) matched - should be 1</pre>");
+ }
+ </script>
+ </body>
+</html>