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

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

Issue 382833003: Revert of IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 common input types. 1 Test setRangeText() method on common input types.
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":"password"} 7 Running tests on input with attributes: {"type":"password"}
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)
92 element.setRangeText('A', 1, 3, 'preserve') 86 element.setRangeText('A', 1, 3, 'preserve')
93 PASS element.value is "0A3456789" 87 PASS element.value is "0A3456789"
94 PASS element.selectionStart is 5 88 PASS element.selectionStart is 5
95 PASS element.selectionEnd is 8 89 PASS element.selectionEnd is 8
96 element.value = '0123456789' 90 element.value = '0123456789'
97 element.setSelectionRange(2, 6) 91 element.setSelectionRange(2, 6)
98 element.setRangeText('A', 1, 4, 'preserve') 92 element.setRangeText('A', 1, 4, 'preserve')
99 PASS element.value is "0A456789" 93 PASS element.value is "0A456789"
100 PASS element.selectionStart is 1 94 PASS element.selectionStart is 1
101 PASS element.selectionEnd is 4 95 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 PASS element.selectionStart is 6 194 PASS element.selectionStart is 6
201 PASS element.selectionEnd is 9 195 PASS element.selectionEnd is 9
202 element.value = '0123456789' 196 element.value = '0123456789'
203 element.setSelectionRange(6, 9) 197 element.setSelectionRange(6, 9)
204 element.setRangeText('AB', 1, 1, 'invalid') 198 element.setRangeText('AB', 1, 1, 'invalid')
205 PASS element.value is "0AB123456789" 199 PASS element.value is "0AB123456789"
206 PASS element.selectionStart is 8 200 PASS element.selectionStart is 8
207 PASS element.selectionEnd is 11 201 PASS element.selectionEnd is 11
208 element.value = '0123456789' 202 element.value = '0123456789'
209 element.setSelectionRange(6, 9) 203 element.setSelectionRange(6, 9)
210 element.setRangeText('AB', 1, 1, undefined)
211 PASS element.value is "0AB123456789"
212 PASS element.selectionStart is 8
213 PASS element.selectionEnd is 11
214 element.value = '0123456789'
215 element.setSelectionRange(6, 9)
216 element.setRangeText('A', 1, 3, 'preserve') 204 element.setRangeText('A', 1, 3, 'preserve')
217 PASS element.value is "0A3456789" 205 PASS element.value is "0A3456789"
218 PASS element.selectionStart is 5 206 PASS element.selectionStart is 5
219 PASS element.selectionEnd is 8 207 PASS element.selectionEnd is 8
220 element.value = '0123456789' 208 element.value = '0123456789'
221 element.setSelectionRange(2, 6) 209 element.setSelectionRange(2, 6)
222 element.setRangeText('A', 1, 4, 'preserve') 210 element.setRangeText('A', 1, 4, 'preserve')
223 PASS element.value is "0A456789" 211 PASS element.value is "0A456789"
224 PASS element.selectionStart is 1 212 PASS element.selectionStart is 1
225 PASS element.selectionEnd is 4 213 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 PASS element.selectionStart is 6 312 PASS element.selectionStart is 6
325 PASS element.selectionEnd is 9 313 PASS element.selectionEnd is 9
326 element.value = '0123456789' 314 element.value = '0123456789'
327 element.setSelectionRange(6, 9) 315 element.setSelectionRange(6, 9)
328 element.setRangeText('AB', 1, 1, 'invalid') 316 element.setRangeText('AB', 1, 1, 'invalid')
329 PASS element.value is "0AB123456789" 317 PASS element.value is "0AB123456789"
330 PASS element.selectionStart is 8 318 PASS element.selectionStart is 8
331 PASS element.selectionEnd is 11 319 PASS element.selectionEnd is 11
332 element.value = '0123456789' 320 element.value = '0123456789'
333 element.setSelectionRange(6, 9) 321 element.setSelectionRange(6, 9)
334 element.setRangeText('AB', 1, 1, undefined)
335 PASS element.value is "0AB123456789"
336 PASS element.selectionStart is 8
337 PASS element.selectionEnd is 11
338 element.value = '0123456789'
339 element.setSelectionRange(6, 9)
340 element.setRangeText('A', 1, 3, 'preserve') 322 element.setRangeText('A', 1, 3, 'preserve')
341 PASS element.value is "0A3456789" 323 PASS element.value is "0A3456789"
342 PASS element.selectionStart is 5 324 PASS element.selectionStart is 5
343 PASS element.selectionEnd is 8 325 PASS element.selectionEnd is 8
344 element.value = '0123456789' 326 element.value = '0123456789'
345 element.setSelectionRange(2, 6) 327 element.setSelectionRange(2, 6)
346 element.setRangeText('A', 1, 4, 'preserve') 328 element.setRangeText('A', 1, 4, 'preserve')
347 PASS element.value is "0A456789" 329 PASS element.value is "0A456789"
348 PASS element.selectionStart is 1 330 PASS element.selectionStart is 1
349 PASS element.selectionEnd is 4 331 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 PASS element.selectionStart is 6 430 PASS element.selectionStart is 6
449 PASS element.selectionEnd is 9 431 PASS element.selectionEnd is 9
450 element.value = '0123456789' 432 element.value = '0123456789'
451 element.setSelectionRange(6, 9) 433 element.setSelectionRange(6, 9)
452 element.setRangeText('AB', 1, 1, 'invalid') 434 element.setRangeText('AB', 1, 1, 'invalid')
453 PASS element.value is "0AB123456789" 435 PASS element.value is "0AB123456789"
454 PASS element.selectionStart is 8 436 PASS element.selectionStart is 8
455 PASS element.selectionEnd is 11 437 PASS element.selectionEnd is 11
456 element.value = '0123456789' 438 element.value = '0123456789'
457 element.setSelectionRange(6, 9) 439 element.setSelectionRange(6, 9)
458 element.setRangeText('AB', 1, 1, undefined)
459 PASS element.value is "0AB123456789"
460 PASS element.selectionStart is 8
461 PASS element.selectionEnd is 11
462 element.value = '0123456789'
463 element.setSelectionRange(6, 9)
464 element.setRangeText('A', 1, 3, 'preserve') 440 element.setRangeText('A', 1, 3, 'preserve')
465 PASS element.value is "0A3456789" 441 PASS element.value is "0A3456789"
466 PASS element.selectionStart is 5 442 PASS element.selectionStart is 5
467 PASS element.selectionEnd is 8 443 PASS element.selectionEnd is 8
468 element.value = '0123456789' 444 element.value = '0123456789'
469 element.setSelectionRange(2, 6) 445 element.setSelectionRange(2, 6)
470 element.setRangeText('A', 1, 4, 'preserve') 446 element.setRangeText('A', 1, 4, 'preserve')
471 PASS element.value is "0A456789" 447 PASS element.value is "0A456789"
472 PASS element.selectionStart is 1 448 PASS element.selectionStart is 1
473 PASS element.selectionEnd is 4 449 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 PASS element.selectionStart is 6 548 PASS element.selectionStart is 6
573 PASS element.selectionEnd is 9 549 PASS element.selectionEnd is 9
574 element.value = '0123456789' 550 element.value = '0123456789'
575 element.setSelectionRange(6, 9) 551 element.setSelectionRange(6, 9)
576 element.setRangeText('AB', 1, 1, 'invalid') 552 element.setRangeText('AB', 1, 1, 'invalid')
577 PASS element.value is "0AB123456789" 553 PASS element.value is "0AB123456789"
578 PASS element.selectionStart is 8 554 PASS element.selectionStart is 8
579 PASS element.selectionEnd is 11 555 PASS element.selectionEnd is 11
580 element.value = '0123456789' 556 element.value = '0123456789'
581 element.setSelectionRange(6, 9) 557 element.setSelectionRange(6, 9)
582 element.setRangeText('AB', 1, 1, undefined)
583 PASS element.value is "0AB123456789"
584 PASS element.selectionStart is 8
585 PASS element.selectionEnd is 11
586 element.value = '0123456789'
587 element.setSelectionRange(6, 9)
588 element.setRangeText('A', 1, 3, 'preserve') 558 element.setRangeText('A', 1, 3, 'preserve')
589 PASS element.value is "0A3456789" 559 PASS element.value is "0A3456789"
590 PASS element.selectionStart is 5 560 PASS element.selectionStart is 5
591 PASS element.selectionEnd is 8 561 PASS element.selectionEnd is 8
592 element.value = '0123456789' 562 element.value = '0123456789'
593 element.setSelectionRange(2, 6) 563 element.setSelectionRange(2, 6)
594 element.setRangeText('A', 1, 4, 'preserve') 564 element.setRangeText('A', 1, 4, 'preserve')
595 PASS element.value is "0A456789" 565 PASS element.value is "0A456789"
596 PASS element.selectionStart is 1 566 PASS element.selectionStart is 1
597 PASS element.selectionEnd is 4 567 PASS element.selectionEnd is 4
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 631
662 Running tests on input with attributes: {"type":"submit"} 632 Running tests on input with attributes: {"type":"submit"}
663 633
664 element.value = '0123456789XYZ' 634 element.value = '0123456789XYZ'
665 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('sub mit') does not support selection.. 635 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('sub mit') does not support selection..
666 PASS element.value is "0123456789XYZ" 636 PASS element.value is "0123456789XYZ"
667 PASS successfullyParsed is true 637 PASS successfullyParsed is true
668 638
669 TEST COMPLETE 639 TEST COMPLETE
670 640
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698