Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Range / range-detached-exceptions-expected.txt
1 A variety of Range methods should throw if called on a detached range.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS range.cloneContents() threw exception InvalidStateError: Failed to execute 'cloneContents' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
7 PASS range.cloneRange() threw exception InvalidStateError: Failed to execute 'cloneRange' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
8 PASS range.collapsed threw exception InvalidStateError: Failed to read the 'collapsed' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
9 PASS range.commonAncestorContainer threw exception InvalidStateError: Failed to read the 'commonAncestorContainer' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
10 PASS range.compareBoundaryPoints(Range.START_TO_END, range) threw exception InvalidStateError: Failed to execute 'compareBoundaryPoints' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
11 PASS range.comparePoint(document.getElementById('b1'), 1) threw exception InvalidStateError: Failed to execute 'comparePoint' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
12 PASS range.createContextualFragment('p') threw exception InvalidStateError: Failed to execute 'createContextualFragment' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
13 PASS range.deleteContents() threw exception InvalidStateError: Failed to execute 'deleteContents' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
14 PASS range.detach() threw exception InvalidStateError: Failed to execute 'detach' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
15 PASS range.endContainer threw exception InvalidStateError: Failed to read the 'endContainer' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
16 PASS range.endOffset threw exception InvalidStateError: Failed to read the 'endOffset' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
17 PASS range.extractContents() threw exception InvalidStateError: Failed to execute 'extractContents' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
18 PASS range.insertNode(document.getElementById('b1')) threw exception InvalidStateError: Failed to execute 'insertNode' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
19 PASS range.intersectsNode(document.getElementById('b1')) threw exception InvalidStateError: Failed to execute 'intersectsNode' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
20 PASS range.isPointInRange(document.getElementById('b1'), 0) threw exception InvalidStateError: Failed to execute 'isPointInRange' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
21 PASS range.selectNode(document.getElementById('b1')) threw exception InvalidStateError: Failed to execute 'selectNode' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
22 PASS range.selectNodeContents(document.getElementById('b1')) threw exception InvalidStateError: Failed to execute 'selectNodeContents' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
23 PASS range.setEnd(document.getElementById('b1'), 0) threw exception InvalidStateError: Failed to execute 'setEnd' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
24 PASS range.setStart(document.getElementById('b1'), 0) threw exception InvalidStateError: Failed to execute 'setStart' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
25 PASS range.startContainer threw exception InvalidStateError: Failed to read the 'startContainer' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
26 PASS range.startOffset threw exception InvalidStateError: Failed to read the 'startOffset' property from 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
27 PASS range.surroundContents(document.getElementById('b1')) threw exception InvalidStateError: Failed to execute 'surroundContents' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
28 PASS range.toString() threw exception InvalidStateError: Failed to execute 'toString' on 'Range': The range has no container. Perhaps 'detach()' has been invoked on this object?.
29 PASS successfullyParsed is true
30
31 TEST COMPLETE
32