OLD | NEW |
| 1 * Test with 2 disconnected elements |
1 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED | 2 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
2 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED | 3 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
3 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | 4 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
4 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | 5 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
5 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING | 6 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING |
6 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING | 7 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING |
| 8 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING || a.compar
eDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 9 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING || b.compar
eDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 10 PASS a.compareDocumentPosition(b) is a.compareDocumentPosition(b) |
| 11 PASS b.compareDocumentPosition(a) is b.compareDocumentPosition(a) |
| 12 * Test with document and a disconnected element |
| 13 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 14 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 15 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 16 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 17 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING |
| 18 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING |
| 19 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING || a.compar
eDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 20 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING || b.compar
eDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 21 PASS a.compareDocumentPosition(b) is a.compareDocumentPosition(b) |
| 22 PASS b.compareDocumentPosition(a) is b.compareDocumentPosition(a) |
| 23 * Test with document and a disconnected attribute |
| 24 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 25 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 26 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 27 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 28 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING |
| 29 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING |
| 30 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING || a.compar
eDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 31 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING || b.compar
eDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 32 PASS a.compareDocumentPosition(b) is a.compareDocumentPosition(b) |
| 33 PASS b.compareDocumentPosition(a) is b.compareDocumentPosition(a) |
| 34 * Test with 2 disconnected attributes |
| 35 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 36 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 37 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 38 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 39 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING |
| 40 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING |
| 41 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING || a.compar
eDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 42 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING || b.compar
eDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 43 PASS a.compareDocumentPosition(b) is a.compareDocumentPosition(b) |
| 44 PASS b.compareDocumentPosition(a) is b.compareDocumentPosition(a) |
| 45 * Test with disconnected attribute and element |
| 46 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 47 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISCONNECTED is Node.
DOCUMENT_POSITION_DISCONNECTED |
| 48 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 49 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIF
IC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 50 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING |
| 51 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is not b.co
mpareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING |
| 52 PASS a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_PRECEDING || a.compar
eDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 53 PASS b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING || b.compar
eDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING is non-zero. |
| 54 PASS a.compareDocumentPosition(b) is a.compareDocumentPosition(b) |
| 55 PASS b.compareDocumentPosition(a) is b.compareDocumentPosition(a) |
7 PASS successfullyParsed is true | 56 PASS successfullyParsed is true |
8 | 57 |
9 TEST COMPLETE | 58 TEST COMPLETE |
10 Comparing the positions of two disconnected nodes should result in DOCUMENT_POSI
TION_DISCONNECTED. | 59 Comparing the positions of two disconnected nodes should result in DOCUMENT_POSI
TION_DISCONNECTED. |
OLD | NEW |