1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 2 <html> 3 <head> 4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css"> 5 <script src="../../../js/resources/js-test-pre.js"></script> 6 <script src="test.js"></script> 7 <script src="../../xpath-test-pre.js"></script> 8 </head> 9 <body> 10 <div id="console"></div> 11 12 <script> 13 result = DOM.evaluate("//*", CHILD2, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 14 checkSnapshot("//*", result, [ROOT, CHILD1].concat(GCHILDREN1, [CHILD2], GCHILDREN2, [CHILD3, LANG], LCHILDREN)); 15 16 result = DOM.evaluate("*/*", ROOT, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 17 checkSnapshot("*/*", result, GCHILDREN1.concat(GCHILDREN2, LCHILDREN)); 18 19 result = DOM.evaluate("/", CHILD1, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 20 checkSnapshot("/", result, [DOM]); 21 22 result = DOM.evaluate("/child::*", CHILD2, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 23 checkSnapshot("/child::*", result, [ROOT]); 24 25 result = DOM.evaluate("child::*/child::*", ROOT, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); 26 checkSnapshot("child::*/child::*", result, GCHILDREN1.concat(GCHILDREN2, LCHILDREN)); 27 28 var successfullyParsed = true; 29 30 </script> 31 <script src="../../../js/resources/js-test-post.js"></script> 32 </body> 33 </html> 34