OLD | NEW |
1 Tests for .valueAsNumber with <input type=range>. | 1 Tests for .valueAsNumber with <input type=range>. |
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("0") is 0 | 6 PASS valueAsNumberFor("0") is 0 |
7 PASS valueAsNumberFor("10") is 10 | 7 PASS valueAsNumberFor("10") is 10 |
8 PASS valueAsNumberFor("01") is 1 | 8 PASS valueAsNumberFor("01") is 1 |
9 PASS valueAsNumberFor("-0") is 0 | 9 PASS valueAsNumberFor("-0") is 0 |
10 PASS valueAsNumberFor("-1.2") is 0 | 10 PASS valueAsNumberFor("-1.2") is 0 |
(...skipping 24 matching lines...) Expand all Loading... |
35 PASS setValueAsNumberAndGetValue(0) is "0" | 35 PASS setValueAsNumberAndGetValue(0) is "0" |
36 PASS setValueAsNumberAndGetValue(10) is "10" | 36 PASS setValueAsNumberAndGetValue(10) is "10" |
37 PASS setValueAsNumberAndGetValue(01) is "1" | 37 PASS setValueAsNumberAndGetValue(01) is "1" |
38 PASS setValueAsNumberAndGetValue(-0) is "0" | 38 PASS setValueAsNumberAndGetValue(-0) is "0" |
39 PASS setValueAsNumberAndGetValue(-1.2) is "0" | 39 PASS setValueAsNumberAndGetValue(-1.2) is "0" |
40 PASS setValueAsNumberAndGetValue(1.2e10) is "100" | 40 PASS setValueAsNumberAndGetValue(1.2e10) is "100" |
41 PASS setValueAsNumberAndGetValue(1.2e-10) is "0" | 41 PASS setValueAsNumberAndGetValue(1.2e-10) is "0" |
42 PASS setValueAsNumberAndGetValue(1.2345678901234567e+38) is "100" | 42 PASS setValueAsNumberAndGetValue(1.2345678901234567e+38) is "100" |
43 Tests to set invalid values to valueAsNumber: | 43 Tests to set invalid values to valueAsNumber: |
44 PASS setValueAsNumberAndGetValue(null) is "0" | 44 PASS setValueAsNumberAndGetValue(null) is "0" |
45 PASS setValueAsNumberAndGetValue("foo") threw exception Error: NotSupportedError
: DOM Exception 9. | 45 PASS setValueAsNumberAndGetValue("foo") threw exception NotSupportedError: The i
mplementation did not support the requested type of object or operation.. |
46 PASS setValueAsNumberAndGetValue(NaN) threw exception Error: NotSupportedError:
DOM Exception 9. | 46 PASS setValueAsNumberAndGetValue(NaN) threw exception NotSupportedError: The imp
lementation did not support the requested type of object or operation.. |
47 PASS setValueAsNumberAndGetValue(Number.NaN) threw exception Error: NotSupported
Error: DOM Exception 9. | 47 PASS setValueAsNumberAndGetValue(Number.NaN) threw exception NotSupportedError:
The implementation did not support the requested type of object or operation.. |
48 PASS setValueAsNumberAndGetValue(Infinity) threw exception Error: NotSupportedEr
ror: DOM Exception 9. | 48 PASS setValueAsNumberAndGetValue(Infinity) threw exception NotSupportedError: Th
e implementation did not support the requested type of object or operation.. |
49 PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception Error
: NotSupportedError: DOM Exception 9. | 49 PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception NotSu
pportedError: The implementation did not support the requested type of object or
operation.. |
50 PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception Error
: NotSupportedError: DOM Exception 9. | 50 PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception NotSu
pportedError: The implementation did not support the requested type of object or
operation.. |
51 PASS successfullyParsed is true | 51 PASS successfullyParsed is true |
52 | 52 |
53 TEST COMPLETE | 53 TEST COMPLETE |
54 | 54 |
OLD | NEW |