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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/selection-exceptions-expected.txt

Issue 2707233002: Range and Selection: Do not accept offsets larger than 2^31-1. (Closed)
Patch Set: . Created 3 years, 10 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
OLDNEW
1 This tests that 'Selection' methods throw exceptions with reasonable messages. 1 This tests that 'Selection' methods throw exceptions with reasonable messages.
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 getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': There is no child at off set 4294967295.. 6 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': The offset 4294967295 is invalid..
7 PASS getSelection().collapseToStart() threw exception InvalidStateError: Failed to execute 'collapseToStart' on 'Selection': there is no selection.. 7 PASS getSelection().collapseToStart() threw exception InvalidStateError: Failed to execute 'collapseToStart' on 'Selection': there is no selection..
8 PASS getSelection().collapseToEnd() threw exception InvalidStateError: Failed to execute 'collapseToEnd' on 'Selection': there is no selection.. 8 PASS getSelection().collapseToEnd() threw exception InvalidStateError: Failed to execute 'collapseToEnd' on 'Selection': there is no selection..
9 PASS getSelection().setBaseAndExtent(document.documentElement, -1, document.docu mentElement, 0) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': There is no child at offset 4294967295.. 9 PASS getSelection().setBaseAndExtent(document.documentElement, -1, document.docu mentElement, 0) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': The offset 4294967295 is invalid..
10 PASS getSelection().setBaseAndExtent(document.documentElement, 0, document.docum entElement, -1) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': There is no child at offset 4294967295.. 10 PASS getSelection().setBaseAndExtent(document.documentElement, 0, document.docum entElement, -1) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': The offset 4294967295 is invalid..
11 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': There is no child at off set 4294967295.. 11 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': The offset 4294967295 is invalid..
12 PASS getSelection().getRangeAt(-1) threw exception IndexSizeError: Failed to exe cute 'getRangeAt' on 'Selection': 4294967295 is not a valid index.. 12 PASS getSelection().getRangeAt(-1) threw exception IndexSizeError: Failed to exe cute 'getRangeAt' on 'Selection': 4294967295 is not a valid index..
13 PASS getSelection().extend(0, -1) threw exception TypeError: Failed to execute ' extend' on 'Selection': parameter 1 is not of type 'Node'.. 13 PASS getSelection().extend(0, -1) threw exception TypeError: Failed to execute ' extend' on 'Selection': parameter 1 is not of type 'Node'..
14 PASS getSelection().extend(document.documentElement, -1) threw exception IndexSi zeError: Failed to execute 'extend' on 'Selection': There is no child at offset 4294967295.. 14 PASS getSelection().extend(document.documentElement, -1) threw exception IndexSi zeError: Failed to execute 'extend' on 'Selection': The offset 4294967295 is inv alid..
15 PASS getSelection().extend(document.documentElement, 1000) threw exception Index SizeError: Failed to execute 'extend' on 'Selection': There is no child at offse t 1000.. 15 PASS getSelection().extend(document.documentElement, 1000) threw exception Index SizeError: Failed to execute 'extend' on 'Selection': There is no child at offse t 1000..
16 PASS successfullyParsed is true 16 PASS successfullyParsed is true
17 17
18 TEST COMPLETE 18 TEST COMPLETE
19 19
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/text/selection-exceptions.html ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698