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

Side by Side Diff: LayoutTests/fast/forms/selection-wrongtype-expected.txt

Issue 84693008: Improve HTMLInputElement exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 Tests to ensure selectionStart, selectionEnd, selectionDirection and selectionRa nge throw exceptions when the input element is not a text field. 1 Tests to ensure selectionStart, selectionEnd, selectionDirection and selectionRa nge throw exceptions when the input element is not a text field.
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 test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 6 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('but ton') does not support selection..
7 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 7 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('bu tton') does not support selection..
8 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 8 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('button' ) does not support selection..
9 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 9 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('button ') does not support selection..
10 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 10 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('button') does not support selection..
11 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 11 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('button') does not support selection..
12 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 12 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
13 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 13 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('che ckbox') does not support selection..
14 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 14 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('ch eckbox') does not support selection..
15 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 15 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('checkbo x') does not support selection..
16 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 16 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('checkb ox') does not support selection..
17 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 17 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('checkbox') does not support selection..
18 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 18 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('checkbox') does not support selection..
19 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 19 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
20 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 20 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('fil e') does not support selection..
21 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 21 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('fi le') does not support selection..
22 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 22 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('file') does not support selection..
23 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 23 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('file') does not support selection..
24 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 24 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('file') does not support selection..
25 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 25 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('file') does not support selection..
26 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 26 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
27 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 27 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('hid den') does not support selection..
28 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 28 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('hi dden') does not support selection..
29 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 29 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('hidden' ) does not support selection..
30 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 30 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('hidden ') does not support selection..
31 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 31 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('hidden') does not support selection..
32 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 32 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('hidden') does not support selection..
33 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 33 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
34 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 34 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('ima ge') does not support selection..
35 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 35 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('im age') does not support selection..
36 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 36 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('image') does not support selection..
37 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 37 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('image' ) does not support selection..
38 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 38 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('image') does not support selection..
39 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 39 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('image') does not support selection..
40 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 40 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
41 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 41 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('rad io') does not support selection..
42 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 42 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('ra dio') does not support selection..
43 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 43 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('radio') does not support selection..
44 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 44 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('radio' ) does not support selection..
45 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 45 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('radio') does not support selection..
46 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 46 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('radio') does not support selection..
47 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 47 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
48 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 48 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('ran ge') does not support selection..
49 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 49 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('ra nge') does not support selection..
50 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 50 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('range') does not support selection..
51 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 51 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('range' ) does not support selection..
52 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 52 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('range') does not support selection..
53 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 53 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('range') does not support selection..
54 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 54 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
55 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 55 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('res et') does not support selection..
56 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 56 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('re set') does not support selection..
57 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 57 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('reset') does not support selection..
58 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 58 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('reset' ) does not support selection..
59 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 59 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('reset') does not support selection..
60 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 60 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('reset') does not support selection..
61 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 61 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
62 PASS test.selectionStart threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 62 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('sub mit') does not support selection..
63 PASS test.selectionStart = 0 threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 63 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('su bmit') does not support selection..
64 PASS test.selectionEnd threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.. 64 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('submit' ) does not support selection..
65 PASS test.selectionEnd = 0 threw exception InvalidStateError: An attempt was mad e to use an object that is not, or is no longer, usable.. 65 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('submit ') does not support selection..
66 PASS test.selectionDirection threw exception InvalidStateError: An attempt was m ade to use an object that is not, or is no longer, usable.. 66 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('submit') does not support selection..
67 PASS test.selectionDirection = 0 threw exception InvalidStateError: An attempt w as made to use an object that is not, or is no longer, usable.. 67 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('submit') does not support selection..
68 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'. 68 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
69 PASS successfullyParsed is true 69 PASS successfullyParsed is true
70 70
71 TEST COMPLETE 71 TEST COMPLETE
72 72
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/range/range-setrangetext-expected.txt ('k') | LayoutTests/fast/forms/setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698