OLD | NEW |
1 A number input fields with a bad input string should make validity.badInput true
and have :invalid style. | 1 A number input fields with a bad input string should make validity.badInput true
and have :invalid style. |
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 Initial state. The elment has no value. | 6 Initial state. The elment has no value. |
7 PASS colorOf(number) is not invalidStyleColor | 7 PASS colorOf(number) is not invalidStyleColor |
8 PASS number.validity.badInput is false | 8 PASS number.validity.badInput is false |
9 Type '-'. The element becomes badInput. | 9 Type '-'. The element becomes badInput. |
10 PASS colorOf(number) is invalidStyleColor | 10 PASS colorOf(number) is invalidStyleColor |
11 PASS number.validity.valid is false | 11 PASS number.validity.valid is false |
12 PASS number.validity.badInput is true | 12 PASS number.validity.badInput is true |
13 PASS number.value is "" | 13 PASS number.value is "" |
14 Type '1' additionally. The element becomes valid. | 14 Type '1' additionally. The element becomes valid. |
15 PASS colorOf(number) is not invalidStyleColor | 15 PASS colorOf(number) is not invalidStyleColor |
16 PASS number.validity.badInput is false | 16 PASS number.validity.badInput is false |
17 PASS number.value is "-1" | 17 PASS number.value is "-1" |
18 Type 'a' additionally. The element becomes badInput again. | 18 Type 'a' additionally. The element becomes badInput again. |
19 PASS colorOf(number) is invalidStyleColor | 19 PASS colorOf(number) is invalidStyleColor |
20 PASS number.validity.badInput is true | 20 PASS number.validity.badInput is true |
21 PASS number.value is "" | 21 PASS number.value is "" |
22 The element losts focus. The element state should not be changed. | 22 The element looses focus. The element state should not be changed. |
23 PASS colorOf(number) is invalidStyleColor | 23 PASS colorOf(number) is invalidStyleColor |
24 PASS number.validity.badInput is true | 24 PASS number.validity.badInput is true |
25 PASS document.getSelection().toString() is "-1a" | 25 PASS document.getSelection().toString() is "-1a" |
26 PASS number.value is "" | 26 PASS number.value is "" |
27 The element losts a renderer. The element state should not be changed. | 27 The element looses renderer. The element state should not be changed. |
28 PASS number.style.display = "none"; number.validity.badInput is true | 28 PASS number.style.display = "none"; number.validity.badInput is true |
29 A bad input should be cleared by value="". | 29 A bad input should be cleared by value="". |
30 PASS number.value = ""; document.execCommand("SelectAll"); document.getSelection
().toString() is "" | 30 PASS number.value = ""; document.execCommand("SelectAll"); document.getSelection
().toString() is "" |
| 31 badInput and checkValidty() should be updated by value= "some valid number" |
| 32 Type some text (invalid input) |
| 33 PASS number.validity.badInput is true |
| 34 PASS number.checkValidity() is false |
| 35 Now set a valid value |
| 36 PASS number.validity.badInput is false |
| 37 PASS number.checkValidity() is true |
31 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
32 | 39 |
33 TEST COMPLETE | 40 TEST COMPLETE |
34 | 41 |
OLD | NEW |