Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: LayoutTests/fast/dom/Range/range-detached-exceptions-expected.txt

Issue 23964014: Improve exception messages for detached Range objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 'detatch()' has been invoked on this object?.
7 PASS range.cloneRange() threw exception InvalidStateError: Failed to execute 'cl oneRange' on 'Range': The range has no container. Perhaps 'detatch()' has been i nvoked on this object?.
8 PASS range.collapsed() threw exception InvalidStateError: Failed to execute 'col lapsed' on 'Range': The range has no container. Perhaps 'detatch()' has been inv oked on this object?.
9 PASS range.commonAncestorContainer() threw exception InvalidStateError: Failed t o execute 'commonAncestorContainer' on 'Range': The range has no container. Perh aps 'detatch()' has been invoked on this object?.
10 PASS range.compareBoundaryPoints(Range.START_TO_END, range) threw exception Inva lidStateError: Failed to execute 'compareBoundaryPoints' on 'Range': The range h as no container. Perhaps 'detatch()' has been invoked on this object?.
11 PASS range.comparePoint(document.getElementById('b1'), 1) threw exception Invali dStateError: Failed to execute 'comparePoint' on 'Range': The range has no conta iner. Perhaps 'detatch()' has been invoked on this object?.
12 PASS range.createContextualFragment('p') threw exception InvalidStateError: Fail ed to execute 'createContextualFragment' on 'Range': The range has no container. Perhaps 'detatch()' 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 'detatch()' ha s been invoked on this object?.
14 PASS range.detach() threw exception InvalidStateError: Failed to execute 'detach ' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked o n this object?.
15 PASS range.endContainer() threw exception InvalidStateError: Failed to execute ' endContainer' on 'Range': The range has no container. Perhaps 'detatch()' has be en invoked on this object?.
16 PASS range.endOffset() threw exception InvalidStateError: Failed to execute 'end Offset' on 'Range': The range has no container. Perhaps 'detatch()' has been inv oked on this object?.
17 PASS range.extractContents() threw exception InvalidStateError: Failed to execut e 'extractContents' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked on this object?.
18 PASS range.insertNode(document.getElementById('b1')) threw exception InvalidStat eError: Failed to execute 'insertNode' on 'Range': The range has no container. P erhaps 'detatch()' has been invoked on this object?.
19 PASS range.intersectsNode(document.getElementById('b1')) threw exception Invalid StateError: Failed to execute 'intersectsNode' on 'Range': The range has no cont ainer. Perhaps 'detatch()' has been invoked on this object?.
20 PASS range.isPointInRange(document.getElementById('b1')) threw exception Invalid StateError: Failed to execute 'isPointInRange' on 'Range': The range has no cont ainer. Perhaps 'detatch()' has been invoked on this object?.
21 PASS range.selectNode(document.getElementById('b1')) threw exception InvalidStat eError: Failed to execute 'selectNode' on 'Range': The range has no container. P erhaps 'detatch()' has been invoked on this object?.
22 PASS range.selectNodeContents(document.getElementById('b1')) threw exception Inv alidStateError: Failed to execute 'selectNodeContents' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked on this object?.
23 PASS range.setEnd(document.getElementById('b1')) threw exception InvalidStateErr or: Failed to execute 'setEnd' on 'Range': The range has no container. Perhaps ' detatch()' has been invoked on this object?.
24 PASS range.setStart(document.getElementById('b1')) threw exception InvalidStateE rror: Failed to execute 'setStart' on 'Range': The range has no container. Perha ps 'detatch()' has been invoked on this object?.
25 PASS range.startContainer() threw exception InvalidStateError: Failed to execute 'startContainer' on 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked on this object?.
26 PASS range.startContainer() threw exception InvalidStateError: Failed to execute 'startContainer' on 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked on this object?.
27 PASS range.startOffset() threw exception InvalidStateError: Failed to execute 's tartOffset' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked on this object?.
28 PASS range.surroundContents(document.getElementById('b1')) threw exception Inval idStateError: Failed to execute 'surroundContents' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked on this object?.
29 PASS range.toString() threw exception InvalidStateError: Failed to execute 'toSt ring' on 'Range': The range has no container. Perhaps 'detatch()' has been invok ed on this object?.
30 PASS successfullyParsed is true
31
32 TEST COMPLETE
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698