f656935a7378f7d373d3abacd5f5eff7289c34b7
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Range / range-intersectsNode-expected.txt
1 CONSOLE WARNING: 'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach).
2 This test checks the behavior of the intersectsNode() method on the Range object.
3 It covers all configurations of the node/Range relationship and some exception conditions.
4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6
7
8 1.1 Node starts before the range and ends before the range
9 PASS intersects is false
10
11 1.2 Node starts before the range, and range ends on a 1
12 PASS intersects is true
13
14 1.3 Node starts before the range and ends within the range
15 PASS intersects is true
16
17 1.4 Range starts on 0, and node starts before range and ends in range
18 PASS intersects is true
19
20 1.5 Node starts and ends in range
21 PASS intersects is true
22
23 1.6 Node starts in the range, and the range ends on 1
24 PASS intersects is true
25
26 1.7 Node starts in the range, and ends after the range
27 PASS intersects is true
28
29 1.8 Range start on 1, node starts in range and ends after
30 PASS intersects is true
31
32 1.9 Node starts on range start and ends on range end
33 PASS intersects is true
34
35 1.10 Node starts after range end and ends after range end
36 PASS intersects is false
37
38 1.11 Node starts before range start and ends after range end
39 PASS intersects is true
40
41 1.12 Node starts before range start and range begins and ends on 1
42 PASS intersects is true
43
44 1.13 Range starts at 0 and ends at 1
45 PASS intersects is true
46
47 2.1 Detached Range, attached node
48 PASS detachedRange.intersectsNode(document.getElementById('a1')) is false
49
50 2.2 attached range, detached node
51 PASS intersects is false
52
53 2.3 Node has no parent
54 PASS range.intersectsNode(document) threw exception NotFoundError: Failed to execute 'intersectsNode' on 'Range': The node provided has no parent..
55
56 2.4 Range has no parent
57 PASS range.selectNode(document) threw exception InvalidNodeTypeError: Failed to execute 'selectNode' on 'Range': the given Node has no parent..
58
59 2.5 Wrong documents
60 PASS intersects is false
61
62 2.6 Node deleted
63 PASS range.intersectsNode(node) threw exception NotFoundError: Failed to execute 'intersectsNode' on 'Range': The node provided is null..
64
65 PASS successfullyParsed is true
66
67 TEST COMPLETE
68