| OLD | NEW |
| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PASS element.value is "0123456789A" | 113 PASS element.value is "0123456789A" |
| 114 PASS element.selectionStart is 10 | 114 PASS element.selectionStart is 10 |
| 115 PASS element.selectionEnd is 11 | 115 PASS element.selectionEnd is 11 |
| 116 element.value = '0123456789' | 116 element.value = '0123456789' |
| 117 element.setSelectionRange(0, 0) | 117 element.setSelectionRange(0, 0) |
| 118 element.setRangeText('A', 8, 100, 'select') | 118 element.setRangeText('A', 8, 100, 'select') |
| 119 PASS element.value is "01234567A" | 119 PASS element.value is "01234567A" |
| 120 PASS element.selectionStart is 8 | 120 PASS element.selectionStart is 8 |
| 121 PASS element.selectionEnd is 9 | 121 PASS element.selectionEnd is 9 |
| 122 element.value = '0123456789' | 122 element.value = '0123456789' |
| 123 PASS element.setRangeText('A', 7, 3) threw exception Error: IndexSizeError: DOM
Exception 1. | 123 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si
ze was negative, or greater than the allowed value.. |
| 124 | 124 |
| 125 Running tests on input with attributes: {"type":"tel"} | 125 Running tests on input with attributes: {"type":"tel"} |
| 126 | 126 |
| 127 setRangeText() with only one parameter. | 127 setRangeText() with only one parameter. |
| 128 element.value = '0123456789' | 128 element.value = '0123456789' |
| 129 element.setSelectionRange(2, 5) | 129 element.setSelectionRange(2, 5) |
| 130 element.setRangeText('ABC') | 130 element.setRangeText('ABC') |
| 131 PASS element.value is "01ABC56789" | 131 PASS element.value is "01ABC56789" |
| 132 PASS element.selectionStart is 2 | 132 PASS element.selectionStart is 2 |
| 133 PASS element.selectionEnd is 5 | 133 PASS element.selectionEnd is 5 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 PASS element.value is "0123456789A" | 231 PASS element.value is "0123456789A" |
| 232 PASS element.selectionStart is 10 | 232 PASS element.selectionStart is 10 |
| 233 PASS element.selectionEnd is 11 | 233 PASS element.selectionEnd is 11 |
| 234 element.value = '0123456789' | 234 element.value = '0123456789' |
| 235 element.setSelectionRange(0, 0) | 235 element.setSelectionRange(0, 0) |
| 236 element.setRangeText('A', 8, 100, 'select') | 236 element.setRangeText('A', 8, 100, 'select') |
| 237 PASS element.value is "01234567A" | 237 PASS element.value is "01234567A" |
| 238 PASS element.selectionStart is 8 | 238 PASS element.selectionStart is 8 |
| 239 PASS element.selectionEnd is 9 | 239 PASS element.selectionEnd is 9 |
| 240 element.value = '0123456789' | 240 element.value = '0123456789' |
| 241 PASS element.setRangeText('A', 7, 3) threw exception Error: IndexSizeError: DOM
Exception 1. | 241 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si
ze was negative, or greater than the allowed value.. |
| 242 | 242 |
| 243 Running tests on input with attributes: {"type":"text"} | 243 Running tests on input with attributes: {"type":"text"} |
| 244 | 244 |
| 245 setRangeText() with only one parameter. | 245 setRangeText() with only one parameter. |
| 246 element.value = '0123456789' | 246 element.value = '0123456789' |
| 247 element.setSelectionRange(2, 5) | 247 element.setSelectionRange(2, 5) |
| 248 element.setRangeText('ABC') | 248 element.setRangeText('ABC') |
| 249 PASS element.value is "01ABC56789" | 249 PASS element.value is "01ABC56789" |
| 250 PASS element.selectionStart is 2 | 250 PASS element.selectionStart is 2 |
| 251 PASS element.selectionEnd is 5 | 251 PASS element.selectionEnd is 5 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 PASS element.value is "0123456789A" | 349 PASS element.value is "0123456789A" |
| 350 PASS element.selectionStart is 10 | 350 PASS element.selectionStart is 10 |
| 351 PASS element.selectionEnd is 11 | 351 PASS element.selectionEnd is 11 |
| 352 element.value = '0123456789' | 352 element.value = '0123456789' |
| 353 element.setSelectionRange(0, 0) | 353 element.setSelectionRange(0, 0) |
| 354 element.setRangeText('A', 8, 100, 'select') | 354 element.setRangeText('A', 8, 100, 'select') |
| 355 PASS element.value is "01234567A" | 355 PASS element.value is "01234567A" |
| 356 PASS element.selectionStart is 8 | 356 PASS element.selectionStart is 8 |
| 357 PASS element.selectionEnd is 9 | 357 PASS element.selectionEnd is 9 |
| 358 element.value = '0123456789' | 358 element.value = '0123456789' |
| 359 PASS element.setRangeText('A', 7, 3) threw exception Error: IndexSizeError: DOM
Exception 1. | 359 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si
ze was negative, or greater than the allowed value.. |
| 360 | 360 |
| 361 Running tests on input with attributes: {"type":"text","dir":"rtl"} | 361 Running tests on input with attributes: {"type":"text","dir":"rtl"} |
| 362 | 362 |
| 363 setRangeText() with only one parameter. | 363 setRangeText() with only one parameter. |
| 364 element.value = '0123456789' | 364 element.value = '0123456789' |
| 365 element.setSelectionRange(2, 5) | 365 element.setSelectionRange(2, 5) |
| 366 element.setRangeText('ABC') | 366 element.setRangeText('ABC') |
| 367 PASS element.value is "01ABC56789" | 367 PASS element.value is "01ABC56789" |
| 368 PASS element.selectionStart is 2 | 368 PASS element.selectionStart is 2 |
| 369 PASS element.selectionEnd is 5 | 369 PASS element.selectionEnd is 5 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 PASS element.value is "0123456789A" | 467 PASS element.value is "0123456789A" |
| 468 PASS element.selectionStart is 10 | 468 PASS element.selectionStart is 10 |
| 469 PASS element.selectionEnd is 11 | 469 PASS element.selectionEnd is 11 |
| 470 element.value = '0123456789' | 470 element.value = '0123456789' |
| 471 element.setSelectionRange(0, 0) | 471 element.setSelectionRange(0, 0) |
| 472 element.setRangeText('A', 8, 100, 'select') | 472 element.setRangeText('A', 8, 100, 'select') |
| 473 PASS element.value is "01234567A" | 473 PASS element.value is "01234567A" |
| 474 PASS element.selectionStart is 8 | 474 PASS element.selectionStart is 8 |
| 475 PASS element.selectionEnd is 9 | 475 PASS element.selectionEnd is 9 |
| 476 element.value = '0123456789' | 476 element.value = '0123456789' |
| 477 PASS element.setRangeText('A', 7, 3) threw exception Error: IndexSizeError: DOM
Exception 1. | 477 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Index or si
ze was negative, or greater than the allowed value.. |
| 478 | 478 |
| 479 Running tests on input with attributes: {"type":"url"} | 479 Running tests on input with attributes: {"type":"url"} |
| 480 | 480 |
| 481 setRangeText() with only one parameter. | 481 setRangeText() with only one parameter. |
| 482 element.value = '0123456789' | 482 element.value = '0123456789' |
| 483 element.setSelectionRange(2, 5) | 483 element.setSelectionRange(2, 5) |
| 484 element.setRangeText('ABC') | 484 element.setRangeText('ABC') |
| 485 PASS element.value is "01ABC56789" | 485 PASS element.value is "01ABC56789" |
| 486 PASS element.selectionStart is 2 | 486 PASS element.selectionStart is 2 |
| 487 PASS element.selectionEnd is 5 | 487 PASS element.selectionEnd is 5 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 PASS element.value is "0123456789A" | 585 PASS element.value is "0123456789A" |
| 586 PASS element.selectionStart is 10 | 586 PASS element.selectionStart is 10 |
| 587 PASS element.selectionEnd is 11 | 587 PASS element.selectionEnd is 11 |
| 588 element.value = '0123456789' | 588 element.value = '0123456789' |
| 589 element.setSelectionRange(0, 0) | 589 element.setSelectionRange(0, 0) |
| 590 element.setRangeText('A', 8, 100, 'select') | 590 element.setRangeText('A', 8, 100, 'select') |
| 591 PASS element.value is "01234567A" | 591 PASS element.value is "01234567A" |
| 592 PASS element.selectionStart is 8 | 592 PASS element.selectionStart is 8 |
| 593 PASS element.selectionEnd is 9 | 593 PASS element.selectionEnd is 9 |
| 594 element.value = '0123456789' | 594 element.value = '0123456789' |
| 595 PASS element.setRangeText('A', 7, 3) threw exception Error: IndexSizeError: DOM
Exception 1. | 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 Error: InvalidStateError:
DOM Exception 11. | 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.. |
| 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 |
| OLD | NEW |