OLD | NEW |
1 Test setRangeText() method is not available in datetimelocal inputs. | 1 Test setRangeText() on datetime-local inputs. |
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":"datetime-local"} | 7 Running tests on input with attributes: {"type":"datetime-local"} |
8 | 8 |
9 element.value = '0123456789XYZ' | 9 element.value = '0123456789' |
10 PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed
to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('dat
etime-local') does not support selection.. | 10 element.setSelectionRange(2, 5) |
| 11 element.setRangeText('432') |
11 PASS element.value is "" | 12 PASS element.value is "" |
| 13 PASS element.value is not 0143256789 |
12 PASS successfullyParsed is true | 14 PASS successfullyParsed is true |
13 | 15 |
14 TEST COMPLETE | 16 TEST COMPLETE |
15 | 17 |
OLD | NEW |