1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../../../js/resources/js-test-pre.js"></script>
5 <script src="test.js"></script>
6 <script src="../../xpath-test-pre.js"></script>
9 <div id="console"></div>
12 result = DOM.evaluate("//*", CHILD2, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
13 checkSnapshot("//*", result, [ROOT, CHILD1].concat(GCHILDREN1, [CHILD2], GCHILDREN2, [CHILD3, LANG], LCHILDREN));
15 result = DOM.evaluate("*/*", ROOT, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
16 checkSnapshot("*/*", result, GCHILDREN1.concat(GCHILDREN2, LCHILDREN));
18 result = DOM.evaluate("/", CHILD1, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
19 checkSnapshot("/", result, [DOM]);
21 result = DOM.evaluate("/child::*", CHILD2, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
22 checkSnapshot("/child::*", result, [ROOT]);
24 result = DOM.evaluate("child::*/child::*", ROOT, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
25 checkSnapshot("child::*/child::*", result, GCHILDREN1.concat(GCHILDREN2, LCHILDREN));
28 <script src="../../../js/resources/js-test-post.js"></script>