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

Side by Side Diff: LayoutTests/fast/forms/textarea/textarea-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
« no previous file with comments | « LayoutTests/fast/forms/setrangetext-expected.txt ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 'HTMLTextAreaElement': The provided value 'inval id' 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 setRangeText() with 'preserve' as the selectMode. 205 setRangeText() with 'preserve' as the selectMode.
206 element.value = '0123456789' 206 element.value = '0123456789'
207 element.setSelectionRange(6, 9) 207 element.setSelectionRange(6, 9)
208 element.setRangeText('A', 1, 2) 208 element.setRangeText('A', 1, 2)
209 PASS element.value is "0A23456789" 209 PASS element.value is "0A23456789"
210 PASS element.selectionStart is 6 210 PASS element.selectionStart is 6
211 PASS element.selectionEnd is 9 211 PASS element.selectionEnd is 9
212 element.value = '0123456789' 212 element.value = '0123456789'
213 element.setSelectionRange(6, 9) 213 element.setSelectionRange(6, 9)
214 element.setRangeText('AB', 1, 1, 'invalid') 214 PASS element.setRangeText('AB', 1, 1, 'invalid') threw exception TypeError: Fail ed to execute 'setRangeText' on 'HTMLTextAreaElement': The provided value 'inval id' is not a valid enum value of type SelectionMode..
215 PASS element.value is "0AB123456789" 215 PASS element.value is "0123456789"
216 PASS element.selectionStart is 8 216 PASS element.selectionStart is 6
217 PASS element.selectionEnd is 11 217 PASS element.selectionEnd is 9
218 element.value = '0123456789' 218 element.value = '0123456789'
219 element.setSelectionRange(6, 9) 219 element.setSelectionRange(6, 9)
220 element.setRangeText('AB', 1, 1, undefined) 220 element.setRangeText('AB', 1, 1, undefined)
221 PASS element.value is "0AB123456789" 221 PASS element.value is "0AB123456789"
222 PASS element.selectionStart is 8 222 PASS element.selectionStart is 8
223 PASS element.selectionEnd is 11 223 PASS element.selectionEnd is 11
224 element.value = '0123456789' 224 element.value = '0123456789'
225 element.setSelectionRange(6, 9) 225 element.setSelectionRange(6, 9)
226 element.setRangeText('A', 1, 3, 'preserve') 226 element.setRangeText('A', 1, 3, 'preserve')
227 PASS element.value is "0A3456789" 227 PASS element.value is "0A3456789"
(...skipping 30 matching lines...) Expand all
258 element.setRangeText('A', 8, 100, 'select') 258 element.setRangeText('A', 8, 100, 'select')
259 PASS element.value is "01234567A" 259 PASS element.value is "01234567A"
260 PASS element.selectionStart is 8 260 PASS element.selectionStart is 8
261 PASS element.selectionEnd is 9 261 PASS element.selectionEnd is 9
262 element.value = '0123456789' 262 element.value = '0123456789'
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).. 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)..
264 PASS successfullyParsed is true 264 PASS successfullyParsed is true
265 265
266 TEST COMPLETE 266 TEST COMPLETE
267 267
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/setrangetext-expected.txt ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698