OLD | NEW |
1 Tests for .valueAsNumber with <input type=week>. | 1 Tests for .valueAsNumber with <input type=week>. |
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 PASS valueAsNumberFor("") is Number.NaN | 6 PASS valueAsNumberFor("") is Number.NaN |
7 PASS valueAsNumberFor("2007-W01") is Date.UTC(2007, 0, 1) | 7 PASS valueAsNumberFor("2007-W01") is Date.UTC(2007, 0, 1) |
8 PASS valueAsNumberFor("2008-W01") is Date.UTC(2007, 11, 31) | 8 PASS valueAsNumberFor("2008-W01") is Date.UTC(2007, 11, 31) |
9 PASS valueAsNumberFor("2003-W01") is Date.UTC(2002, 11, 30) | 9 PASS valueAsNumberFor("2003-W01") is Date.UTC(2002, 11, 30) |
10 PASS valueAsNumberFor("2004-W01") is Date.UTC(2003, 11, 29, 0, 0, 0, 0) | 10 PASS valueAsNumberFor("2004-W01") is Date.UTC(2003, 11, 29, 0, 0, 0, 0) |
(...skipping 15 matching lines...) Expand all Loading... |
26 PASS setValueAsNumberAndGetValue(2010, 0, 11) is "2010-W02" | 26 PASS setValueAsNumberAndGetValue(2010, 0, 11) is "2010-W02" |
27 PASS setValueAsNumberAndGetValue(2010, 0, 17) is "2010-W02" | 27 PASS setValueAsNumberAndGetValue(2010, 0, 17) is "2010-W02" |
28 PASS setValueAsNumberAndGetValue(2010, 11, 31) is "2010-W52" | 28 PASS setValueAsNumberAndGetValue(2010, 11, 31) is "2010-W52" |
29 Around the minimum/maximum values: | 29 Around the minimum/maximum values: |
30 PASS setValueAsNumberAndGetValue(0, 11, 31) is "" | 30 PASS setValueAsNumberAndGetValue(0, 11, 31) is "" |
31 PASS setValueAsNumberAndGetValue(1, 0, 1) is "0001-W01" | 31 PASS setValueAsNumberAndGetValue(1, 0, 1) is "0001-W01" |
32 PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37" | 32 PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37" |
33 PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37" | 33 PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37" |
34 Tests to set invalid values to valueAsNumber: | 34 Tests to set invalid values to valueAsNumber: |
35 PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01" | 35 PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01" |
36 PASS input.valueAsNumber = "foo" threw exception Error: NotSupportedError: DOM E
xception 9. | 36 PASS input.valueAsNumber = "foo" threw exception NotSupportedError: The implemen
tation did not support the requested type of object or operation.. |
37 PASS input.valueAsNumber = NaN threw exception Error: NotSupportedError: DOM Exc
eption 9. | 37 PASS input.valueAsNumber = NaN threw exception NotSupportedError: The implementa
tion did not support the requested type of object or operation.. |
38 PASS input.valueAsNumber = Number.NaN threw exception Error: NotSupportedError:
DOM Exception 9. | 38 PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: The imp
lementation did not support the requested type of object or operation.. |
39 PASS input.valueAsNumber = Infinity threw exception Error: NotSupportedError: DO
M Exception 9. | 39 PASS input.valueAsNumber = Infinity threw exception NotSupportedError: The imple
mentation did not support the requested type of object or operation.. |
40 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception Error: NotSu
pportedError: DOM Exception 9. | 40 PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupported
Error: The implementation did not support the requested type of object or operat
ion.. |
41 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception Error: NotSu
pportedError: DOM Exception 9. | 41 PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupported
Error: The implementation did not support the requested type of object or operat
ion.. |
42 PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception Error: NotSup
portedError: DOM Exception 9. | 42 PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedE
rror: The implementation did not support the requested type of object or operati
on.. |
43 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
44 | 44 |
45 TEST COMPLETE | 45 TEST COMPLETE |
46 | 46 |
OLD | NEW |