| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script src="xpath-test-pre.js"></script> | 4 <script src="xpath-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="console"></div> | 7 <div id="console"></div> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 function nsResolver(prefix) { | 10 function nsResolver(prefix) { |
| 11 if (prefix == "ns") | 11 if (prefix == "ns") |
| 12 return "foobarns"; | 12 return "foobarns"; |
| 13 if (prefix == "xml") | 13 if (prefix == "xml") |
| (...skipping 17 matching lines...) Expand all Loading... |
| 31 shouldBe('doc.evaluate("//@xml:id", doc, nsResolver, XPathResult.ORDERED_NODE_SN
APSHOT_TYPE, null).snapshotLength', '1'); | 31 shouldBe('doc.evaluate("//@xml:id", doc, nsResolver, XPathResult.ORDERED_NODE_SN
APSHOT_TYPE, null).snapshotLength', '1'); |
| 32 shouldBe('doc.evaluate("//@*", doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
, null).snapshotLength', '4'); | 32 shouldBe('doc.evaluate("//@*", doc, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE
, null).snapshotLength', '4'); |
| 33 shouldBe('doc.evaluate("//@ns:*", doc, nsResolver, XPathResult.ORDERED_NODE_SNAP
SHOT_TYPE, null).snapshotLength', '2'); | 33 shouldBe('doc.evaluate("//@ns:*", doc, nsResolver, XPathResult.ORDERED_NODE_SNAP
SHOT_TYPE, null).snapshotLength', '2'); |
| 34 shouldBe('doc.evaluate("//@xml:*", doc, nsResolver, XPathResult.ORDERED_NODE_SNA
PSHOT_TYPE, null).snapshotLength', '1'); | 34 shouldBe('doc.evaluate("//@xml:*", doc, nsResolver, XPathResult.ORDERED_NODE_SNA
PSHOT_TYPE, null).snapshotLength', '1'); |
| 35 shouldBe('doc.evaluate("//@xmlns", doc, nsResolver, XPathResult.ORDERED_NODE_SNA
PSHOT_TYPE, null).snapshotLength', '0'); | 35 shouldBe('doc.evaluate("//@xmlns", doc, nsResolver, XPathResult.ORDERED_NODE_SNA
PSHOT_TYPE, null).snapshotLength', '0'); |
| 36 shouldBe('doc.evaluate("//@xmlns:*", doc, nsResolver, XPathResult.ORDERED_NODE_S
NAPSHOT_TYPE, null).snapshotLength', '0'); | 36 shouldBe('doc.evaluate("//@xmlns:*", doc, nsResolver, XPathResult.ORDERED_NODE_S
NAPSHOT_TYPE, null).snapshotLength', '0'); |
| 37 | 37 |
| 38 </script> | 38 </script> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |