/
ValidityState-stepMismatch-expected.txt
245 lines (232 loc) · 11.8 KB
/
ValidityState-stepMismatch-expected.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
Check stepMismatch results for type=date, datetime, datetime-local, month, time, week.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Date type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "1969-12-31") is false
Normal step values
PASS stepMismatchFor("2010-02-10", "2", "2010-02-09") is true
PASS stepMismatchFor("2010-02-09", "2", "2010-02-09") is false
PASS stepMismatchFor("2010-02-11", "2", "2010-02-09") is false
PASS stepMismatchFor("1800-11-11", "3", "1800-11-09") is true
PASS stepMismatchFor("1800-11-09", "3", "1800-11-09") is false
PASS stepMismatchFor("1800-11-12", "3", "1800-11-09") is false
PASS stepMismatchFor("275760-09-13", "3", "275760-09-11") is true
PASS stepMismatchFor("275760-09-13", "2", "275760-09-11") is false
Implicit step base
PASS stepMismatchFor("1970-01-02", "2", null) is true
PASS stepMismatchFor("1970-01-03", "2", null) is false
Fractional step values
PASS stepMismatchFor("2010-02-10", "0.1", "2010-02-09") is false
PASS stepMismatchFor("2010-02-10", "1.1", "2010-02-09") is false
PASS stepMismatchFor("2010-02-10", "1.9", "2010-02-09") is true
Invalid or no step values
PASS stepMismatchFor("2010-02-10", null, "2010-02-09") is false
PASS stepMismatchFor("2010-02-10", "-1", "2010-02-09") is false
PASS stepMismatchFor("2010-02-10", "foo", "2010-02-09") is false
Special step value
PASS stepMismatchFor("2010-02-10", "any", "2010-02-09") is false
Datetime type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "1969-12-31T12:34:56Z") is false
Normal step values
PASS stepMismatchFor("2010-02-09T12:34:55Z", "1", "2010-02-09T12:34:56Z") is false
PASS stepMismatchFor("2010-02-09T12:34:55.001Z", "1", "2010-02-09T12:34:56Z") is true
PASS stepMismatchFor("2010-02-09T12:34:56.001Z", "0.001", "2010-02-09T12:34:56Z") is false
PASS stepMismatchFor("2010-02-09T12:34:55Z", "0.333", "2010-02-09T12:34:56Z") is true
PASS stepMismatchFor("2010-02-09T12:34:55.001Z", "0.333", "2010-02-09T12:34:56Z") is false
PASS stepMismatchFor("2010-02-09T12:34Z", "86400", "2010-02-08T12:34Z") is false
PASS stepMismatchFor("2010-02-09T12:34:56Z", "86400", "2010-02-08T12:34Z") is true
PASS stepMismatchFor("275760-09-13T00:00Z", "3", "275760-09-13T23:50:50Z") is true
PASS stepMismatchFor("275760-09-13T00:00Z", "2", "275760-09-13T23:50:50Z") is false
Implicit step base
PASS stepMismatchFor("1970-01-01T12:34Z", "120", null) is false
PASS stepMismatchFor("1970-01-01T12:35Z", "120", null) is true
Small step values
PASS stepMismatchFor("2010-02-10T12:34:56.000Z", "0.0003", "2010-02-10T12:34.55.000Z") is false
PASS stepMismatchFor("2010-02-10T12:34:55.001Z", "0.0019", "2010-02-10T12:34.55.000Z") is true
Invalid or no step values
PASS stepMismatchFor("2010-02-10T12:34Z", null, "2010-02-09T12:34Z") is false
PASS stepMismatchFor("2010-02-10T12:34:56Z", null, "2010-02-09T12:34Z") is true
PASS stepMismatchFor("2010-02-10T12:34Z", "-1", "2010-02-09T12:34Z") is false
PASS stepMismatchFor("2010-02-10T12:34Z", "foo", "2010-02-09T12:34Z") is false
Special step value
PASS stepMismatchFor("2010-02-09T12:34Z", "any", "2010-02-09T12:34Z") is false
Datetime-local type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "1969-12-31T12:34:56") is false
Normal step values
PASS stepMismatchFor("2010-02-09T12:34:55", "1", "2010-02-09T12:34:56") is false
PASS stepMismatchFor("2010-02-09T12:34:55.001", "1", "2010-02-09T12:34:56") is true
PASS stepMismatchFor("2010-02-09T12:34:56.001", "0.001", "2010-02-09T12:34:56") is false
PASS stepMismatchFor("2010-02-09T12:34:55", "0.333", "2010-02-09T12:34:56") is true
PASS stepMismatchFor("2010-02-09T12:34:55.001", "0.333", "2010-02-09T12:34:56") is false
PASS stepMismatchFor("2010-02-09T12:34", "86400", "2010-02-08T12:34") is false
PASS stepMismatchFor("2010-02-09T12:34:56", "86400", "2010-02-08T12:34") is true
PASS stepMismatchFor("275760-09-13T00:00", "3", "275760-09-13T23:50:50") is true
PASS stepMismatchFor("275760-09-13T00:00", "2", "275760-09-13T23:50:50") is false
Implicit step base
PASS stepMismatchFor("1970-01-01T12:34", "120", null) is false
PASS stepMismatchFor("1970-01-01T12:35", "120", null) is true
Small step values
PASS stepMismatchFor("2010-02-10T12:34:56.000", "0.0003", "2010-02-10T12:34.55.000") is false
PASS stepMismatchFor("2010-02-10T12:34:55.001", "0.0019", "2010-02-10T12:34.55.000") is true
Invalid or no step values
PASS stepMismatchFor("2010-02-10T12:34", null, "2010-02-09T12:34") is false
PASS stepMismatchFor("2010-02-10T12:34:56", null, "2010-02-09T12:34") is true
PASS stepMismatchFor("2010-02-10T12:34", "-1", "2010-02-09T12:34") is false
PASS stepMismatchFor("2010-02-10T12:34", "foo", "2010-02-09T12:34") is false
Special step value
PASS stepMismatchFor("2010-02-09T12:34", "any", "2010-02-09T12:34") is false
Month type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "1969-12") is false
Normal step values
PASS stepMismatchFor("2010-03", "2", "2010-02") is true
PASS stepMismatchFor("2010-02", "2", "2010-02") is false
PASS stepMismatchFor("2010-04", "2", "2010-02") is false
PASS stepMismatchFor("1800-11", "3", "1800-09") is true
PASS stepMismatchFor("1800-09", "3", "1800-09") is false
PASS stepMismatchFor("1800-12", "3", "1800-09") is false
PASS stepMismatchFor("275760-09", "3", "275760-08") is true
PASS stepMismatchFor("275760-09", "2", "275760-09") is false
Implicit step base
PASS stepMismatchFor("1970-02", "2", null) is true
PASS stepMismatchFor("1970-03", "2", null) is false
Fractional step values
PASS stepMismatchFor("2010-03", "0.1", "2010-02") is false
PASS stepMismatchFor("2010-03", "1.1", "2010-02") is false
PASS stepMismatchFor("2010-03", "1.9", "2010-02") is true
Invalid or no step values
PASS stepMismatchFor("2010-03", null, "2010-02") is false
PASS stepMismatchFor("2010-03", "-1", "2010-02") is false
PASS stepMismatchFor("2010-03", "foo", "2010-02") is false
Special step value
PASS stepMismatchFor("2010-03", "any", "2010-02") is false
Number type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "1.0", "0.1") is false
Integers
PASS stepMismatchFor("1", "2", "0") is true
PASS stepMismatchFor("-3", "2", "-4") is true
PASS input.max = "5"; stepMismatchFor("5", "3", "0") is true
PASS input.value is "5"
Invalid step values
PASS stepMismatchFor("-3", "-2", "-4") is false
PASS stepMismatchFor("-3", null, "-4") is false
PASS stepMismatchFor("-3", undefined, "-4") is false
Huge numbers and small step; uncomparable
PASS stepMismatchFor("1.7976931348623157e+308", "3", "") is false
PASS stepMismatchFor("1.7976931348623156e+308", "3", "") is false
PASS stepMismatchFor("1.7976931348623155e+308", "3", "") is false
Huge numbers and huge step
PASS stepMismatchFor("1.60e+308", "0.20e+308", "") is false
PASS stepMismatchFor("1.60e+308", "0.22e+308", "") is true
Fractional numbers
PASS stepMismatchFor("0.9", "0.1", "") is false
PASS stepMismatchFor("0.9", "0.1000001", "") is true
PASS stepMismatchFor("0.9", "0.1000000000000001", "") is false
PASS stepMismatchFor("1.0", "0.3333333333333333", "") is false
Range type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "1.0", "0.1") is false
Integers
PASS stepMismatchFor("1", "2", "0") is false
PASS stepMismatchFor("-3", "2", "-4") is false
PASS input.max = "5"; stepMismatchFor("5", "3", "0") is false
PASS input.value is "3"
Invalid step values
PASS stepMismatchFor("-3", "-2", "-4") is false
PASS stepMismatchFor("-3", null, "-4") is false
PASS stepMismatchFor("-3", undefined, "-4") is false
Huge numbers and small step; uncomparable
PASS stepMismatchFor("1.7976931348623157e+308", "3", "") is false
PASS stepMismatchFor("1.7976931348623156e+308", "3", "") is false
PASS stepMismatchFor("1.7976931348623155e+308", "3", "") is false
Huge numbers and huge step
PASS stepMismatchFor("1.60e+308", "0.20e+308", "") is false
PASS stepMismatchFor("1.60e+308", "0.22e+308", "") is false
Fractional numbers
PASS stepMismatchFor("0.9", "0.1", "") is false
PASS stepMismatchFor("0.9", "0.1000001", "") is false
PASS stepMismatchFor("0.9", "0.1000000000000001", "") is false
PASS stepMismatchFor("1.0", "0.3333333333333333", "") is false
Time type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "12:34:56") is false
Normal step values
PASS stepMismatchFor("12:34:55", "1", "12:34:56") is false
PASS stepMismatchFor("12:34:55.001", "1", "12:34:56") is true
PASS stepMismatchFor("12:34:56.001", "0.001", "12:34:56") is false
PASS stepMismatchFor("12:34:55", "0.333", "12:34:56") is true
PASS stepMismatchFor("12:34:55.001", "0.333", "12:34:56") is false
PASS stepMismatchFor("12:34", "86400", "12:34") is false
PASS stepMismatchFor("23:59:59.998", "86399.999", "00:00") is true
PASS stepMismatchFor("23:59:59.999", "86399.999", "00:00") is false
Implicit step base
PASS stepMismatchFor("12:34", "120", null) is false
PASS stepMismatchFor("12:35", "120", null) is true
Small step values
PASS stepMismatchFor("12:34:55.001", "0.0003", "12:34.55.000") is false
PASS stepMismatchFor("12:34:55.001", "0.0019", "12:34.55.000") is true
PASS stepMismatchFor("12:34:55.004", "0.0019", "12:34.55.000") is false
Invalid or no step values
PASS stepMismatchFor("12:34", null, "12:34") is false
PASS stepMismatchFor("12:34:56", null, "12:34") is true
PASS stepMismatchFor("12:34", "-1", "12:34") is false
PASS stepMismatchFor("12:34", "foo", "12:34") is false
Special step value
PASS stepMismatchFor("12:35", "any", "12:34") is false
Week type
Empty values
PASS stepMismatchFor("", null, null) is false
PASS stepMismatchFor("", "2", "1970-W02") is false
Normal step values
PASS stepMismatchFor("2010-W03", "2", "2010-W02") is true
PASS stepMismatchFor("2010-W02", "2", "2010-W02") is false
PASS stepMismatchFor("2010-W04", "2", "2010-W02") is false
PASS stepMismatchFor("1800-W11", "3", "1800-W09") is true
PASS stepMismatchFor("1800-W09", "3", "1800-W09") is false
PASS stepMismatchFor("1800-W12", "3", "1800-W09") is false
PASS stepMismatchFor("275760-W35", "3", "275760-W33") is true
PASS stepMismatchFor("275760-W35", "2", "275760-W33") is false
Implicit step base
PASS stepMismatchFor("1970-W01", "2", null) is false
PASS stepMismatchFor("1970-W02", "2", null) is true
PASS stepMismatchFor("1970-W03", "2", null) is false
PASS stepMismatchFor("1970-W04", "2", null) is true
Fractional step values
PASS stepMismatchFor("2010-W03", "0.1", "2010-W02") is false
PASS stepMismatchFor("2010-W03", "1.1", "2010-W02") is false
PASS stepMismatchFor("2010-W03", "1.9", "2010-W02") is true
Invalid or no step values
PASS stepMismatchFor("2010-W03", null, "2010-W02") is false
PASS stepMismatchFor("2010-W03", "-1", "2010-W02") is false
PASS stepMismatchFor("2010-W03", "foo", "2010-W02") is false
Special step value
PASS stepMismatchFor("2010-W03", "any", "2010-W02") is false
Unsupported types
PASS input.type = "text"; input.step = "3"; input.min = ""; input.value = "2"; input.validity.stepMismatch is false
PASS input.type = "button"; input.validity.stepMismatch is false
PASS input.type = "checkbox"; input.validity.stepMismatch is false
PASS input.type = "color"; input.validity.stepMismatch is false
PASS input.type = "email"; input.validity.stepMismatch is false
PASS input.type = "hidden"; input.validity.stepMismatch is false
PASS input.type = "image"; input.validity.stepMismatch is false
PASS input.type = "khtml_isindex"; input.validity.stepMismatch is false
PASS input.type = "passwd"; input.validity.stepMismatch is false
PASS input.type = "radio"; input.validity.stepMismatch is false
PASS input.type = "reset"; input.validity.stepMismatch is false
PASS input.type = "search"; input.validity.stepMismatch is false
PASS input.type = "submit"; input.validity.stepMismatch is false
PASS input.type = "tel"; input.validity.stepMismatch is false
PASS input.type = "url"; input.validity.stepMismatch is false
PASS input.type = "file"; input.validity.stepMismatch is false
PASS successfullyParsed is true
TEST COMPLETE