OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 <script src="xpath-test-pre.js"></script> | 4 <script src="xpath-test-pre.js"></script> |
5 <style> | 5 <style> |
6 #context {display:none} | 6 #context {display:none} |
7 </style> | 7 </style> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <p>Test that an NCName and * are interpreted as an operator when in | 10 <p>Test that an NCName and * are interpreted as an operator when in |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 test(xmlDoc, xmlDoc, "or:or", [xmlDoc.documentElement], nsResolver); | 102 test(xmlDoc, xmlDoc, "or:or", [xmlDoc.documentElement], nsResolver); |
103 test(xmlDoc, xmlDoc, "or:*", [xmlDoc.documentElement], nsResolver); | 103 test(xmlDoc, xmlDoc, "or:*", [xmlDoc.documentElement], nsResolver); |
104 | 104 |
105 // A few tests with mod as well | 105 // A few tests with mod as well |
106 var xmlDoc2 = (new DOMParser).parseFromString("<mod and='x'>8</mod>", "text/xml"
); | 106 var xmlDoc2 = (new DOMParser).parseFromString("<mod and='x'>8</mod>", "text/xml"
); |
107 test(xmlDoc2, xmlDoc2, "mod", [xmlDoc2.documentElement], null); | 107 test(xmlDoc2, xmlDoc2, "mod", [xmlDoc2.documentElement], null); |
108 test(xmlDoc2, xmlDoc2, "mod mod mod", 0, null); | 108 test(xmlDoc2, xmlDoc2, "mod mod mod", 0, null); |
109 test(xmlDoc2, xmlDoc2, "(mod) mod 5", 3, null); | 109 test(xmlDoc2, xmlDoc2, "(mod) mod 5", 3, null); |
110 test(xmlDoc2, xmlDoc2, "string(mod/@and)", 'x', null); | 110 test(xmlDoc2, xmlDoc2, "string(mod/@and)", 'x', null); |
111 </script> | 111 </script> |
112 <script src="../js/resources/js-test-post.js"></script> | |
113 </body> | 112 </body> |
114 </html> | 113 </html> |
OLD | NEW |