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

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

Issue 84693008: Improve HTMLInputElement exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si ze was negative, or greater than the allowed value.. 595 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si ze was negative, or greater than the allowed value..
596 596
597 Check that setRangeText() on disconnected elements doesn't crash and has proper values. 597 Check that setRangeText() on disconnected elements doesn't crash and has proper values.
598 element.value = '0123456789' 598 element.value = '0123456789'
599 element.setRangeText('ABC', 0, 0, 'select') 599 element.setRangeText('ABC', 0, 0, 'select')
600 FAIL element.value should be ABC0123456789. Was 0123456789. 600 FAIL element.value should be ABC0123456789. Was 0123456789.
601 601
602 Running tests on input with attributes: {"type":"button"} 602 Running tests on input with attributes: {"type":"button"}
603 603
604 element.value = '0123456789XYZ' 604 element.value = '0123456789XYZ'
605 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 605 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('but ton') does not support selection..
606 PASS element.value is "0123456789XYZ" 606 PASS element.value is "0123456789XYZ"
607 607
608 Running tests on input with attributes: {"type":"checkbox"} 608 Running tests on input with attributes: {"type":"checkbox"}
609 609
610 element.value = '0123456789XYZ' 610 element.value = '0123456789XYZ'
611 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 611 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('che ckbox') does not support selection..
612 PASS element.value is "0123456789XYZ" 612 PASS element.value is "0123456789XYZ"
613 613
614 Running tests on input with attributes: {"type":"email"} 614 Running tests on input with attributes: {"type":"email"}
615 615
616 element.value = '0123456789XYZ' 616 element.value = '0123456789XYZ'
617 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 617 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('ema il') does not support selection..
618 PASS element.value is "0123456789XYZ" 618 PASS element.value is "0123456789XYZ"
619 619
620 Running tests on input with attributes: {"type":"radio"} 620 Running tests on input with attributes: {"type":"radio"}
621 621
622 element.value = '0123456789XYZ' 622 element.value = '0123456789XYZ'
623 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 623 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('rad io') does not support selection..
624 PASS element.value is "0123456789XYZ" 624 PASS element.value is "0123456789XYZ"
625 625
626 Running tests on input with attributes: {"type":"reset"} 626 Running tests on input with attributes: {"type":"reset"}
627 627
628 element.value = '0123456789XYZ' 628 element.value = '0123456789XYZ'
629 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 629 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('res et') does not support selection..
630 PASS element.value is "0123456789XYZ" 630 PASS element.value is "0123456789XYZ"
631 631
632 Running tests on input with attributes: {"type":"submit"} 632 Running tests on input with attributes: {"type":"submit"}
633 633
634 element.value = '0123456789XYZ' 634 element.value = '0123456789XYZ'
635 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: An att empt was made to use an object that is not, or is no longer, usable.. 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..
636 PASS element.value is "0123456789XYZ" 636 PASS element.value is "0123456789XYZ"
637 PASS successfullyParsed is true 637 PASS successfullyParsed is true
638 638
639 TEST COMPLETE 639 TEST COMPLETE
640 640
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/selection-wrongtype-expected.txt ('k') | LayoutTests/fast/forms/time/time-setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698