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

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

Issue 100433008: Disable select api for input type number and email (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per code review 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
« no previous file with comments | « LayoutTests/fast/forms/selection-wrongtype.html ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('but ton') does not support selection.. 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: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('bu tton') does not support selection.. 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: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('button' ) does not support selection.. 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: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('button ') does not support selection.. 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: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('button') does not support selection.. 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..
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.. 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: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('reset') does not support selection.. 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: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('sub mit') does not support selection.. 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: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('su bmit') does not support selection.. 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: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('submit' ) does not support selection.. 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: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('submit ') does not support selection.. 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: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('submit') does not support selection.. 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: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('submit') does not support selection.. 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 test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('ema il') does not support selection..
70 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('em ail') does not support selection..
71 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('email') does not support selection..
72 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('email' ) does not support selection..
73 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('email') does not support selection..
74 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('email') does not support selection..
75 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
76 PASS test.selectionStart threw exception InvalidStateError: Failed to read the ' selectionStart' property from 'HTMLInputElement': The input element's type ('num ber') does not support selection..
77 PASS test.selectionStart = 0 threw exception InvalidStateError: Failed to set th e 'selectionStart' property on 'HTMLInputElement': The input element's type ('nu mber') does not support selection..
78 PASS test.selectionEnd threw exception InvalidStateError: Failed to read the 'se lectionEnd' property from 'HTMLInputElement': The input element's type ('number' ) does not support selection..
79 PASS test.selectionEnd = 0 threw exception InvalidStateError: Failed to set the 'selectionEnd' property on 'HTMLInputElement': The input element's type ('number ') does not support selection..
80 PASS test.selectionDirection threw exception InvalidStateError: Failed to read t he 'selectionDirection' property from 'HTMLInputElement': The input element's ty pe ('number') does not support selection..
81 PASS test.selectionDirection = 0 threw exception InvalidStateError: Failed to se t the 'selectionDirection' property on 'HTMLInputElement': The input element's t ype ('number') does not support selection..
82 PASS test.selectionRange() threw exception TypeError: Object #<HTMLInputElement> has no method 'selectionRange'.
69 PASS successfullyParsed is true 83 PASS successfullyParsed is true
70 84
71 TEST COMPLETE 85 TEST COMPLETE
72 86
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/selection-wrongtype.html ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698