OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../../resources/js-test.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 | 10 |
11 doc = (new DOMParser).parseFromString("<root num0='0' num2='2' num4='4'><egg1>eg
g1</egg1><egg2>egg2</egg2></root>", "application/xml"); | 11 doc = (new DOMParser).parseFromString("<root num0='0' num2='2' num4='4'><egg1>eg
g1</egg1><egg2>egg2</egg2></root>", "application/xml"); |
12 | 12 |
13 shouldBe('doc.evaluate("3.14 < -4", doc, null, XPathResult.BOOLEAN_TYPE, null).b
ooleanValue', 'false'); | 13 shouldBe('doc.evaluate("3.14 < -4", doc, null, XPathResult.BOOLEAN_TYPE, null).b
ooleanValue', 'false'); |
14 shouldBe('doc.evaluate("3.14 <= -4", doc, null, XPathResult.BOOLEAN_TYPE, null).
booleanValue', 'false'); | 14 shouldBe('doc.evaluate("3.14 <= -4", doc, null, XPathResult.BOOLEAN_TYPE, null).
booleanValue', 'false'); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 shouldBe('doc.evaluate("false() and true()", doc, null, XPathResult.BOOLEAN_TYPE
, null).booleanValue', 'false'); | 55 shouldBe('doc.evaluate("false() and true()", doc, null, XPathResult.BOOLEAN_TYPE
, null).booleanValue', 'false'); |
56 shouldBe('doc.evaluate("false() and false()", doc, null, XPathResult.BOOLEAN_TYP
E, null).booleanValue', 'false'); | 56 shouldBe('doc.evaluate("false() and false()", doc, null, XPathResult.BOOLEAN_TYP
E, null).booleanValue', 'false'); |
57 shouldBe('doc.evaluate("true() or false()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); | 57 shouldBe('doc.evaluate("true() or false()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); |
58 shouldBe('doc.evaluate("false() or true()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); | 58 shouldBe('doc.evaluate("false() or true()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); |
59 shouldBe('doc.evaluate("true() or true()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); | 59 shouldBe('doc.evaluate("true() or true()", doc, null, XPathResult.BOOLEAN_TYPE,
null).booleanValue', 'true'); |
60 shouldBe('doc.evaluate("false() or false()", doc, null, XPathResult.BOOLEAN_TYPE
, null).booleanValue', 'false'); | 60 shouldBe('doc.evaluate("false() or false()", doc, null, XPathResult.BOOLEAN_TYPE
, null).booleanValue', 'false'); |
61 | 61 |
62 </script> | 62 </script> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |