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

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

Issue 108063005: Make arguments to Range methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years 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
1 A variety of Range methods should throw if called on a detached range. 1 A variety of Range methods should throw if called on a detached range.
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 range.cloneContents() threw exception InvalidStateError: Failed to execute 'cloneContents' on 'Range': The range has no container. Perhaps 'detatch()' has been invoked on this object?. 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?. 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 read the 'coll apsed' property from 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked on this object?. 8 PASS range.collapsed threw exception InvalidStateError: Failed to read the 'coll apsed' property from 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked on this object?.
9 PASS range.commonAncestorContainer threw exception InvalidStateError: Failed to read the 'commonAncestorContainer' property from 'Range': The range has no conta iner. Perhaps 'detatch()' 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 conta iner. Perhaps '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?. 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?. 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?. 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?. 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?. 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 read the 'e ndContainer' property from 'Range': The range has no container. Perhaps 'detatch ()' has been invoked on this object?. 15 PASS range.endContainer threw exception InvalidStateError: Failed to read the 'e ndContainer' property from 'Range': The range has no container. Perhaps 'detatch ()' has been invoked on this object?.
16 PASS range.endOffset threw exception InvalidStateError: Failed to read the 'endO ffset' property from 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked on this object?. 16 PASS range.endOffset threw exception InvalidStateError: Failed to read the 'endO ffset' property from 'Range': The range has no container. Perhaps 'detatch()' ha s been invoked 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?. 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?. 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?. 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?. 20 PASS range.isPointInRange(document.getElementById('b1'), 0) threw exception Inva lidStateError: Failed to execute 'isPointInRange' on 'Range': The range has no c ontainer. 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?. 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?. 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?. 23 PASS range.setEnd(document.getElementById('b1'), 0) threw exception InvalidState Error: Failed to execute 'setEnd' on 'Range': The range has no container. Perhap s '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?. 24 PASS range.setStart(document.getElementById('b1'), 0) threw exception InvalidSta teError: Failed to execute 'setStart' on 'Range': The range has no container. Pe rhaps 'detatch()' 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 'det atch()' 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 'det atch()' has been invoked on this object?.
26 PASS range.startOffset threw exception InvalidStateError: Failed to read the 'st artOffset' property from 'Range': The range has no container. Perhaps 'detatch() ' has been invoked on this object?. 26 PASS range.startOffset threw exception InvalidStateError: Failed to read the 'st artOffset' property from 'Range': The range has no container. Perhaps 'detatch() ' has been invoked on this object?.
27 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?. 27 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?.
28 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?. 28 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?.
29 PASS successfullyParsed is true 29 PASS successfullyParsed is true
30 30
31 TEST COMPLETE 31 TEST COMPLETE
32 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698