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

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

Issue 1195833002: Selection attributes changes from long to unsigned long (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes offset error message Created 5 years, 6 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': -1 is not a valid offset .. 6 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': 4294967295 is larger tha n the given node's length..
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': -1 is not a valid base offset.. 9 PASS getSelection().setBaseAndExtent(document.documentElement, -1, document.docu mentElement, 0) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': 4294967295 is larger than the base node's length..
10 PASS getSelection().setBaseAndExtent(document.documentElement, 0, document.docum entElement, -1) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': -1 is not a valid extent offset.. 10 PASS getSelection().setBaseAndExtent(document.documentElement, 0, document.docum entElement, -1) threw exception IndexSizeError: Failed to execute 'setBaseAndExt ent' on 'Selection': 4294967295 is larger than the extent node's length..
11 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': -1 is not a valid offset .. 11 PASS getSelection().collapse(document.documentElement, -1) threw exception Index SizeError: Failed to execute 'collapse' on 'Selection': 4294967295 is larger tha n the given node's length..
12 PASS getSelection().getRangeAt(-1) threw exception IndexSizeError: Failed to exe cute 'getRangeAt' on 'Selection': -1 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': -1 is not a valid offset.. 14 PASS getSelection().extend(document.documentElement, -1) threw exception IndexSi zeError: Failed to execute 'extend' on 'Selection': 4294967295 is larger than th e given node's length..
15 PASS getSelection().extend(document.documentElement, 1000) threw exception Index SizeError: Failed to execute 'extend' on 'Selection': 1000 is larger than the gi ven node's length.. 15 PASS getSelection().extend(document.documentElement, 1000) threw exception Index SizeError: Failed to execute 'extend' on 'Selection': 1000 is larger than the gi ven node's length..
16 PASS successfullyParsed is true 16 PASS successfullyParsed is true
17 17
18 TEST COMPLETE 18 TEST COMPLETE
19 19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698