| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 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 <script> | 5 <script> |
| 6 var a; | 6 var a; |
| 7 var b; | 7 var b; |
| 8 | 8 |
| 9 function testElements(_a, _b) { | 9 function testElements(_a, _b) { |
| 10 a = _a; | 10 a = _a; |
| 11 b = _b; | 11 b = _b; |
| 12 | 12 |
| 13 shouldBe('a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISC
ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); | 13 shouldBe('a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISC
ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); |
| 14 shouldBe('b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISC
ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); | 14 shouldBe('b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISC
ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 debug("* Test with 2 disconnected attributes"); | 32 debug("* Test with 2 disconnected attributes"); |
| 33 testElements(document.createAttribute("a"), document.createAttribute("b"
)); | 33 testElements(document.createAttribute("a"), document.createAttribute("b"
)); |
| 34 debug("* Test with disconnected attribute and element"); | 34 debug("* Test with disconnected attribute and element"); |
| 35 testElements(document.createAttribute("a"), document.createElement("b"))
; | 35 testElements(document.createAttribute("a"), document.createElement("b"))
; |
| 36 </script> | 36 </script> |
| 37 </head> | 37 </head> |
| 38 <body> | 38 <body> |
| 39 <p>Comparing the positions of two disconnected nodes should result in DOCUME
NT_POSITION_DISCONNECTED.</p> | 39 <p>Comparing the positions of two disconnected nodes should result in DOCUME
NT_POSITION_DISCONNECTED.</p> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |