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 IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLElement': The provided start value (7) is larger t
han the provided end value (3).. | 123 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar
ger than the provided end value (3).. |
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 IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLElement': The provided start value (7) is larger t
han the provided end value (3).. | 241 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar
ger than the provided end value (3).. |
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 IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLElement': The provided start value (7) is larger t
han the provided end value (3).. | 359 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar
ger than the provided end value (3).. |
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 IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLElement': The provided start value (7) is larger t
han the provided end value (3).. | 477 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar
ger than the provided end value (3).. |
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 IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLElement': The provided start value (7) is larger t
han the provided end value (3).. | 595 PASS element.setRangeText('A', 7, 3) threw exception IndexSizeError: Failed to e
xecute 'setRangeText' on 'HTMLInputElement': The provided start value (7) is lar
ger than the provided end value (3).. |
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: Failed
to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('but
ton') does not support selection.. | 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.. |
(...skipping 25 matching lines...) Expand all Loading... |
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: 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.. |
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 |