Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xpath / ancestor-axis.html
blob0ec9bbbc5f79369a4025fa925b0a725527bcc64a
1 <html>
2 <body>
3 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12619">bug 12619</a>:
4 Non-abbreviated XPaths don't work.</p>
6 <div id="a"></div>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 try {
13 result = document.evaluate("//div/ancestor::*", document.body, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
15 if (2 == result.snapshotLength)
16 document.write("SUCCESS");
17 else
18 document.write("FAILURE: " + result.snapshotLength + " result nodes (should be 2)");
19 } catch (ex) {
20 document.write("FAILURE: " + ex);
22 </script>
23 </body>
24 </html>