OLD | NEW |
1 Tests for TreeScope.comparePosition(). | 1 Tests for TreeScope.comparePosition(). |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS internals.compareTreeScopePosition(document, sr1) is Node.DOCUMENT_POSITION
_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING | 6 PASS internals.compareTreeScopePosition(document, sr1) is Node.DOCUMENT_POSITION
_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING |
7 PASS internals.compareTreeScopePosition(sr1, document) is Node.DOCUMENT_POSITION
_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING | 7 PASS internals.compareTreeScopePosition(sr1, document) is Node.DOCUMENT_POSITION
_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING |
8 PASS internals.compareTreeScopePosition(sr1, sr2) is Node.DOCUMENT_POSITION_FOLL
OWING | 8 PASS internals.compareTreeScopePosition(sr1, sr2) is Node.DOCUMENT_POSITION_FOLL
OWING |
9 PASS internals.compareTreeScopePosition(sr2, sr1) is Node.DOCUMENT_POSITION_PREC
EDING | 9 PASS internals.compareTreeScopePosition(sr2, sr1) is Node.DOCUMENT_POSITION_PREC
EDING |
10 PASS internals.compareTreeScopePosition(sr2, sr3) is Node.DOCUMENT_POSITION_CONT
AINED_BY | Node.DOCUMENT_POSITION_FOLLOWING | 10 PASS internals.compareTreeScopePosition(sr2, sr3) is Node.DOCUMENT_POSITION_CONT
AINED_BY | Node.DOCUMENT_POSITION_FOLLOWING |
11 PASS internals.compareTreeScopePosition(sr3, sr2) is Node.DOCUMENT_POSITION_CONT
AINS | Node.DOCUMENT_POSITION_PRECEDING | 11 PASS internals.compareTreeScopePosition(sr3, sr2) is Node.DOCUMENT_POSITION_CONT
AINS | Node.DOCUMENT_POSITION_PRECEDING |
12 PASS internals.compareTreeScopePosition(sr1, sr3) is Node.DOCUMENT_POSITION_FOLL
OWING | 12 PASS internals.compareTreeScopePosition(sr1, sr3) is Node.DOCUMENT_POSITION_FOLL
OWING |
13 PASS internals.compareTreeScopePosition(sr3, sr1) is Node.DOCUMENT_POSITION_PREC
EDING | 13 PASS internals.compareTreeScopePosition(sr3, sr1) is Node.DOCUMENT_POSITION_PREC
EDING |
14 PASS internals.compareTreeScopePosition(document, document) is 0 | 14 PASS internals.compareTreeScopePosition(document, document) is 0 |
15 PASS internals.compareTreeScopePosition(sr1, sr1) is 0 | 15 PASS internals.compareTreeScopePosition(sr1, sr1) is 0 |
16 PASS internals.compareTreeScopePosition(sr3, sr2) is Node.DOCUMENT_POSITION_DISC
ONNECTED | Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | 16 PASS internals.compareTreeScopePosition(sr3, sr2) & Node.DOCUMENT_POSITION_PRECE
DING || internals.compareTreeScopePosition(sr3, sr2) & Node.DOCUMENT_POSITION_FO
LLOWING is non-zero. |
| 17 PASS internals.compareTreeScopePosition(sr3, sr2) & Node.DOCUMENT_POSITION_DISCO
NNECTED is Node.DOCUMENT_POSITION_DISCONNECTED |
| 18 PASS internals.compareTreeScopePosition(sr3, sr2) & Node.DOCUMENT_POSITION_IMPLE
MENTATION_SPECIFIC is Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
| 19 PASS internals.compareTreeScopePosition(sr3, sr2) is internals.compareTreeScopeP
osition(sr3, sr2) |
17 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
18 | 21 |
19 TEST COMPLETE | 22 TEST COMPLETE |
20 | 23 |
OLD | NEW |