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

Side by Side Diff: LayoutTests/fast/forms/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 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)
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 PASS element.selectionStart is 6 200 PASS element.selectionStart is 6
195 PASS element.selectionEnd is 9 201 PASS element.selectionEnd is 9
196 element.value = '0123456789' 202 element.value = '0123456789'
197 element.setSelectionRange(6, 9) 203 element.setSelectionRange(6, 9)
198 element.setRangeText('AB', 1, 1, 'invalid') 204 element.setRangeText('AB', 1, 1, 'invalid')
199 PASS element.value is "0AB123456789" 205 PASS element.value is "0AB123456789"
200 PASS element.selectionStart is 8 206 PASS element.selectionStart is 8
201 PASS element.selectionEnd is 11 207 PASS element.selectionEnd is 11
202 element.value = '0123456789' 208 element.value = '0123456789'
203 element.setSelectionRange(6, 9) 209 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)
204 element.setRangeText('A', 1, 3, 'preserve') 216 element.setRangeText('A', 1, 3, 'preserve')
205 PASS element.value is "0A3456789" 217 PASS element.value is "0A3456789"
206 PASS element.selectionStart is 5 218 PASS element.selectionStart is 5
207 PASS element.selectionEnd is 8 219 PASS element.selectionEnd is 8
208 element.value = '0123456789' 220 element.value = '0123456789'
209 element.setSelectionRange(2, 6) 221 element.setSelectionRange(2, 6)
210 element.setRangeText('A', 1, 4, 'preserve') 222 element.setRangeText('A', 1, 4, 'preserve')
211 PASS element.value is "0A456789" 223 PASS element.value is "0A456789"
212 PASS element.selectionStart is 1 224 PASS element.selectionStart is 1
213 PASS element.selectionEnd is 4 225 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 PASS element.selectionStart is 6 324 PASS element.selectionStart is 6
313 PASS element.selectionEnd is 9 325 PASS element.selectionEnd is 9
314 element.value = '0123456789' 326 element.value = '0123456789'
315 element.setSelectionRange(6, 9) 327 element.setSelectionRange(6, 9)
316 element.setRangeText('AB', 1, 1, 'invalid') 328 element.setRangeText('AB', 1, 1, 'invalid')
317 PASS element.value is "0AB123456789" 329 PASS element.value is "0AB123456789"
318 PASS element.selectionStart is 8 330 PASS element.selectionStart is 8
319 PASS element.selectionEnd is 11 331 PASS element.selectionEnd is 11
320 element.value = '0123456789' 332 element.value = '0123456789'
321 element.setSelectionRange(6, 9) 333 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)
322 element.setRangeText('A', 1, 3, 'preserve') 340 element.setRangeText('A', 1, 3, 'preserve')
323 PASS element.value is "0A3456789" 341 PASS element.value is "0A3456789"
324 PASS element.selectionStart is 5 342 PASS element.selectionStart is 5
325 PASS element.selectionEnd is 8 343 PASS element.selectionEnd is 8
326 element.value = '0123456789' 344 element.value = '0123456789'
327 element.setSelectionRange(2, 6) 345 element.setSelectionRange(2, 6)
328 element.setRangeText('A', 1, 4, 'preserve') 346 element.setRangeText('A', 1, 4, 'preserve')
329 PASS element.value is "0A456789" 347 PASS element.value is "0A456789"
330 PASS element.selectionStart is 1 348 PASS element.selectionStart is 1
331 PASS element.selectionEnd is 4 349 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 PASS element.selectionStart is 6 448 PASS element.selectionStart is 6
431 PASS element.selectionEnd is 9 449 PASS element.selectionEnd is 9
432 element.value = '0123456789' 450 element.value = '0123456789'
433 element.setSelectionRange(6, 9) 451 element.setSelectionRange(6, 9)
434 element.setRangeText('AB', 1, 1, 'invalid') 452 element.setRangeText('AB', 1, 1, 'invalid')
435 PASS element.value is "0AB123456789" 453 PASS element.value is "0AB123456789"
436 PASS element.selectionStart is 8 454 PASS element.selectionStart is 8
437 PASS element.selectionEnd is 11 455 PASS element.selectionEnd is 11
438 element.value = '0123456789' 456 element.value = '0123456789'
439 element.setSelectionRange(6, 9) 457 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)
440 element.setRangeText('A', 1, 3, 'preserve') 464 element.setRangeText('A', 1, 3, 'preserve')
441 PASS element.value is "0A3456789" 465 PASS element.value is "0A3456789"
442 PASS element.selectionStart is 5 466 PASS element.selectionStart is 5
443 PASS element.selectionEnd is 8 467 PASS element.selectionEnd is 8
444 element.value = '0123456789' 468 element.value = '0123456789'
445 element.setSelectionRange(2, 6) 469 element.setSelectionRange(2, 6)
446 element.setRangeText('A', 1, 4, 'preserve') 470 element.setRangeText('A', 1, 4, 'preserve')
447 PASS element.value is "0A456789" 471 PASS element.value is "0A456789"
448 PASS element.selectionStart is 1 472 PASS element.selectionStart is 1
449 PASS element.selectionEnd is 4 473 PASS element.selectionEnd is 4
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 PASS element.selectionStart is 6 572 PASS element.selectionStart is 6
549 PASS element.selectionEnd is 9 573 PASS element.selectionEnd is 9
550 element.value = '0123456789' 574 element.value = '0123456789'
551 element.setSelectionRange(6, 9) 575 element.setSelectionRange(6, 9)
552 element.setRangeText('AB', 1, 1, 'invalid') 576 element.setRangeText('AB', 1, 1, 'invalid')
553 PASS element.value is "0AB123456789" 577 PASS element.value is "0AB123456789"
554 PASS element.selectionStart is 8 578 PASS element.selectionStart is 8
555 PASS element.selectionEnd is 11 579 PASS element.selectionEnd is 11
556 element.value = '0123456789' 580 element.value = '0123456789'
557 element.setSelectionRange(6, 9) 581 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)
558 element.setRangeText('A', 1, 3, 'preserve') 588 element.setRangeText('A', 1, 3, 'preserve')
559 PASS element.value is "0A3456789" 589 PASS element.value is "0A3456789"
560 PASS element.selectionStart is 5 590 PASS element.selectionStart is 5
561 PASS element.selectionEnd is 8 591 PASS element.selectionEnd is 8
562 element.value = '0123456789' 592 element.value = '0123456789'
563 element.setSelectionRange(2, 6) 593 element.setSelectionRange(2, 6)
564 element.setRangeText('A', 1, 4, 'preserve') 594 element.setRangeText('A', 1, 4, 'preserve')
565 PASS element.value is "0A456789" 595 PASS element.value is "0A456789"
566 PASS element.selectionStart is 1 596 PASS element.selectionStart is 1
567 PASS element.selectionEnd is 4 597 PASS element.selectionEnd is 4
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 661
632 Running tests on input with attributes: {"type":"submit"} 662 Running tests on input with attributes: {"type":"submit"}
633 663
634 element.value = '0123456789XYZ' 664 element.value = '0123456789XYZ'
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.. 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..
636 PASS element.value is "0123456789XYZ" 666 PASS element.value is "0123456789XYZ"
637 PASS successfullyParsed is true 667 PASS successfullyParsed is true
638 668
639 TEST COMPLETE 669 TEST COMPLETE
640 670
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698