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

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

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 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 textareas. 1 Test setRangeText() method on textareas.
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 textarea with attributes: {} 7 Running tests on textarea with attributes: {}
8 8
9 setRangeText() with only one parameter. 9 setRangeText() with only one parameter.
10 element.value = '0123456789' 10 element.value = '0123456789'
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 element.setRangeText('AB', 1, 1, 'invalid')
81 PASS element.value is "0AB123456789" 81 PASS element.value is "0AB123456789"
82 PASS element.selectionStart is 8 82 PASS element.selectionStart is 8
83 PASS element.selectionEnd is 11 83 PASS element.selectionEnd is 11
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)
87 PASS element.value is "0AB123456789"
88 PASS element.selectionStart is 8
89 PASS element.selectionEnd is 11
90 element.value = '0123456789'
91 element.setSelectionRange(6, 9)
86 element.setRangeText('A', 1, 3, 'preserve') 92 element.setRangeText('A', 1, 3, 'preserve')
87 PASS element.value is "0A3456789" 93 PASS element.value is "0A3456789"
88 PASS element.selectionStart is 5 94 PASS element.selectionStart is 5
89 PASS element.selectionEnd is 8 95 PASS element.selectionEnd is 8
90 element.value = '0123456789' 96 element.value = '0123456789'
91 element.setSelectionRange(2, 6) 97 element.setSelectionRange(2, 6)
92 element.setRangeText('A', 1, 4, 'preserve') 98 element.setRangeText('A', 1, 4, 'preserve')
93 PASS element.value is "0A456789" 99 PASS element.value is "0A456789"
94 PASS element.selectionStart is 1 100 PASS element.selectionStart is 1
95 PASS element.selectionEnd is 4 101 PASS element.selectionEnd is 4
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 PASS element.selectionStart is 6 210 PASS element.selectionStart is 6
205 PASS element.selectionEnd is 9 211 PASS element.selectionEnd is 9
206 element.value = '0123456789' 212 element.value = '0123456789'
207 element.setSelectionRange(6, 9) 213 element.setSelectionRange(6, 9)
208 element.setRangeText('AB', 1, 1, 'invalid') 214 element.setRangeText('AB', 1, 1, 'invalid')
209 PASS element.value is "0AB123456789" 215 PASS element.value is "0AB123456789"
210 PASS element.selectionStart is 8 216 PASS element.selectionStart is 8
211 PASS element.selectionEnd is 11 217 PASS element.selectionEnd is 11
212 element.value = '0123456789' 218 element.value = '0123456789'
213 element.setSelectionRange(6, 9) 219 element.setSelectionRange(6, 9)
220 element.setRangeText('AB', 1, 1, undefined)
221 PASS element.value is "0AB123456789"
222 PASS element.selectionStart is 8
223 PASS element.selectionEnd is 11
224 element.value = '0123456789'
225 element.setSelectionRange(6, 9)
214 element.setRangeText('A', 1, 3, 'preserve') 226 element.setRangeText('A', 1, 3, 'preserve')
215 PASS element.value is "0A3456789" 227 PASS element.value is "0A3456789"
216 PASS element.selectionStart is 5 228 PASS element.selectionStart is 5
217 PASS element.selectionEnd is 8 229 PASS element.selectionEnd is 8
218 element.value = '0123456789' 230 element.value = '0123456789'
219 element.setSelectionRange(2, 6) 231 element.setSelectionRange(2, 6)
220 element.setRangeText('A', 1, 4, 'preserve') 232 element.setRangeText('A', 1, 4, 'preserve')
221 PASS element.value is "0A456789" 233 PASS element.value is "0A456789"
222 PASS element.selectionStart is 1 234 PASS element.selectionStart is 1
223 PASS element.selectionEnd is 4 235 PASS element.selectionEnd is 4
(...skipping 22 matching lines...) Expand all
246 element.setRangeText('A', 8, 100, 'select') 258 element.setRangeText('A', 8, 100, 'select')
247 PASS element.value is "01234567A" 259 PASS element.value is "01234567A"
248 PASS element.selectionStart is 8 260 PASS element.selectionStart is 8
249 PASS element.selectionEnd is 9 261 PASS element.selectionEnd is 9
250 element.value = '0123456789' 262 element.value = '0123456789'
251 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e xecute 'setRangeText' on 'HTMLTextAreaElement': The provided start value (7) is larger than the provided end value (3).. 263 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e xecute 'setRangeText' on 'HTMLTextAreaElement': The provided start value (7) is larger than the provided end value (3)..
252 PASS successfullyParsed is true 264 PASS successfullyParsed is true
253 265
254 TEST COMPLETE 266 TEST COMPLETE
255 267
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/setrangetext-expected.txt ('k') | LayoutTests/fast/js/custom-constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698