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

Side by Side Diff: LayoutTests/fast/forms/search/search-setrangetext-expected.txt

Issue 1229133004: Add SelectionMode enum for setRangeText() in HTMLInputElement and HTMLTextAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix for failing tests Created 5 years, 5 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 Test setRangeText() method on search inputs. 1 Test setRangeText() method on search inputs.
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 6
7 Running tests on input with attributes: {"type":"search"} 7 Running tests on input with attributes: {"type":"search"}
8 8
9 setRangeText() with only one parameter. 9 setRangeText() with only one parameter.
10 element.value = '0123456789' 10 element.value = '0123456789'
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 setRangeText() with 'preserve' as the selectMode. 71 setRangeText() with 'preserve' as the selectMode.
72 element.value = '0123456789' 72 element.value = '0123456789'
73 element.setSelectionRange(6, 9) 73 element.setSelectionRange(6, 9)
74 element.setRangeText('A', 1, 2) 74 element.setRangeText('A', 1, 2)
75 PASS element.value is "0A23456789" 75 PASS element.value is "0A23456789"
76 PASS element.selectionStart is 6 76 PASS element.selectionStart is 6
77 PASS element.selectionEnd is 9 77 PASS element.selectionEnd is 9
78 element.value = '0123456789' 78 element.value = '0123456789'
79 element.setSelectionRange(6, 9) 79 element.setSelectionRange(6, 9)
80 element.setRangeText('AB', 1, 1, 'invalid') 80 PASS element.setRangeText('AB', 1, 1, 'invalid') threw exception TypeError: Fail ed to execute 'setRangeText' on 'HTMLInputElement': The provided value 'invalid' is not a valid enum value of type SelectionMode..
81 PASS element.value is "0AB123456789" 81 PASS element.value is "0123456789"
82 PASS element.selectionStart is 8 82 PASS element.selectionStart is 6
83 PASS element.selectionEnd is 11 83 PASS element.selectionEnd is 9
84 element.value = '0123456789' 84 element.value = '0123456789'
85 element.setSelectionRange(6, 9) 85 element.setSelectionRange(6, 9)
86 element.setRangeText('AB', 1, 1, undefined) 86 element.setRangeText('AB', 1, 1, undefined)
87 PASS element.value is "0AB123456789" 87 PASS element.value is "0AB123456789"
88 PASS element.selectionStart is 8 88 PASS element.selectionStart is 8
89 PASS element.selectionEnd is 11 89 PASS element.selectionEnd is 11
90 element.value = '0123456789' 90 element.value = '0123456789'
91 element.setSelectionRange(6, 9) 91 element.setSelectionRange(6, 9)
92 element.setRangeText('A', 1, 3, 'preserve') 92 element.setRangeText('A', 1, 3, 'preserve')
93 PASS element.value is "0A3456789" 93 PASS element.value is "0A3456789"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 setRangeText() with 'preserve' as the selectMode. 195 setRangeText() with 'preserve' as the selectMode.
196 element.value = '0123456789' 196 element.value = '0123456789'
197 element.setSelectionRange(6, 9) 197 element.setSelectionRange(6, 9)
198 element.setRangeText('A', 1, 2) 198 element.setRangeText('A', 1, 2)
199 PASS element.value is "0A23456789" 199 PASS element.value is "0A23456789"
200 PASS element.selectionStart is 6 200 PASS element.selectionStart is 6
201 PASS element.selectionEnd is 9 201 PASS element.selectionEnd is 9
202 element.value = '0123456789' 202 element.value = '0123456789'
203 element.setSelectionRange(6, 9) 203 element.setSelectionRange(6, 9)
204 element.setRangeText('AB', 1, 1, 'invalid') 204 PASS element.setRangeText('AB', 1, 1, 'invalid') threw exception TypeError: Fail ed to execute 'setRangeText' on 'HTMLInputElement': The provided value 'invalid' is not a valid enum value of type SelectionMode..
205 PASS element.value is "0AB123456789" 205 PASS element.value is "0123456789"
206 PASS element.selectionStart is 8 206 PASS element.selectionStart is 6
207 PASS element.selectionEnd is 11 207 PASS element.selectionEnd is 9
208 element.value = '0123456789' 208 element.value = '0123456789'
209 element.setSelectionRange(6, 9) 209 element.setSelectionRange(6, 9)
210 element.setRangeText('AB', 1, 1, undefined) 210 element.setRangeText('AB', 1, 1, undefined)
211 PASS element.value is "0AB123456789" 211 PASS element.value is "0AB123456789"
212 PASS element.selectionStart is 8 212 PASS element.selectionStart is 8
213 PASS element.selectionEnd is 11 213 PASS element.selectionEnd is 11
214 element.value = '0123456789' 214 element.value = '0123456789'
215 element.setSelectionRange(6, 9) 215 element.setSelectionRange(6, 9)
216 element.setRangeText('A', 1, 3, 'preserve') 216 element.setRangeText('A', 1, 3, 'preserve')
217 PASS element.value is "0A3456789" 217 PASS element.value is "0A3456789"
(...skipping 30 matching lines...) Expand all
248 element.setRangeText('A', 8, 100, 'select') 248 element.setRangeText('A', 8, 100, 'select')
249 PASS element.value is "01234567A" 249 PASS element.value is "01234567A"
250 PASS element.selectionStart is 8 250 PASS element.selectionStart is 8
251 PASS element.selectionEnd is 9 251 PASS element.selectionEnd is 9
252 element.value = '0123456789' 252 element.value = '0123456789'
253 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar ger than the provided end value (3).. 253 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar ger than the provided end value (3)..
254 PASS successfullyParsed is true 254 PASS successfullyParsed is true
255 255
256 TEST COMPLETE 256 TEST COMPLETE
257 257
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/resources/common-setrangetext.js ('k') | LayoutTests/fast/forms/setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698