| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description('Tests for .valueAsNumber with <input type=datetime-local>.'); | 10 description('Tests for .valueAsNumber with <input type=datetime-local>.'); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 shouldThrow('input.valueAsNumber = Number.POSITIVE_INFINITY', '"NotSupportedErro
r: The implementation did not support the requested type of object or operation.
"'); | 51 shouldThrow('input.valueAsNumber = Number.POSITIVE_INFINITY', '"NotSupportedErro
r: The implementation did not support the requested type of object or operation.
"'); |
| 52 shouldThrow('input.valueAsNumber = Number.NEGATIVE_INFINITY', '"NotSupportedErro
r: The implementation did not support the requested type of object or operation.
"'); | 52 shouldThrow('input.valueAsNumber = Number.NEGATIVE_INFINITY', '"NotSupportedErro
r: The implementation did not support the requested type of object or operation.
"'); |
| 53 shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 13, 0, 0, 0, 1)', '"NotSu
pportedError: The implementation did not support the requested type of object or
operation."'); | 53 shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 13, 0, 0, 0, 1)', '"NotSu
pportedError: The implementation did not support the requested type of object or
operation."'); |
| 54 | 54 |
| 55 debug('Step attribute value and string representation:'); | 55 debug('Step attribute value and string representation:'); |
| 56 // If the step attribute value is 1 second and the second part is 0, we should s
how the second part. | 56 // If the step attribute value is 1 second and the second part is 0, we should s
how the second part. |
| 57 shouldBe('input.step = "1"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0)
', '"2010-01-21T00:00:00"'); | 57 shouldBe('input.step = "1"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0)
', '"2010-01-21T00:00:00"'); |
| 58 // If the step attribute value is 0.001 second and the millisecond part is 0, we
should show the millisecond part. | 58 // If the step attribute value is 0.001 second and the millisecond part is 0, we
should show the millisecond part. |
| 59 shouldBe('input.step = "0.001"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0
, 0)', '"2010-01-21T00:00:00.000"'); | 59 shouldBe('input.step = "0.001"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0
, 0)', '"2010-01-21T00:00:00.000"'); |
| 60 </script> | 60 </script> |
| 61 <script src="../../js/resources/js-test-post.js"></script> | |
| 62 </body> | 61 </body> |
| 63 </html> | 62 </html> |
| OLD | NEW |