Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xpath / xpath-detached-import-assert.html
blob2fe48431fe7fd5b237bc1fd1ba18bd010496d1f3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <svg id="svg"></svg>
8 <p>A test case from https://bugs.webkit.org/show_bug.cgi?id=84793.
9 <p>Test passes if it doesn't hit ASSERT(parents.size() &gt;= depth + 1).
10 <div id="console"></div>
12 <script>
13 resolver = function (prefix) {
14 var ns = {
15 "svg" : "http://www.w3.org/2000/svg",
16 "xhtml" : "http://www.w3.org/1999/xhtml",
18 return ns[prefix] || null;
21 var result= document.evaluate("/node()/descendant-or-self::svg:* | node()/ancestor-or-self::node()", document.getElementById("svg").ownerDocument.importNode(document.documentElement), resolver, XPathResult.NUMBER_TYPE, result);
22 shouldBe("result.numberValue", "NaN");
23 </script>
24 </body>
25 </html>