| 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=range>.'); | 10 description('Tests for .valueAsNumber with <input type=range>.'); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 debug('Tests to set invalid values to valueAsNumber:'); | 71 debug('Tests to set invalid values to valueAsNumber:'); |
| 72 shouldBe('setValueAsNumberAndGetValue(null)', '"0"'); | 72 shouldBe('setValueAsNumberAndGetValue(null)', '"0"'); |
| 73 shouldThrow('setValueAsNumberAndGetValue("foo")', '"NotSupportedError: The imple
mentation did not support the requested type of object or operation."'); | 73 shouldThrow('setValueAsNumberAndGetValue("foo")', '"NotSupportedError: The imple
mentation did not support the requested type of object or operation."'); |
| 74 shouldThrow('setValueAsNumberAndGetValue(NaN)', '"NotSupportedError: The impleme
ntation did not support the requested type of object or operation."'); | 74 shouldThrow('setValueAsNumberAndGetValue(NaN)', '"NotSupportedError: The impleme
ntation did not support the requested type of object or operation."'); |
| 75 shouldThrow('setValueAsNumberAndGetValue(Number.NaN)', '"NotSupportedError: The
implementation did not support the requested type of object or operation."'); | 75 shouldThrow('setValueAsNumberAndGetValue(Number.NaN)', '"NotSupportedError: The
implementation did not support the requested type of object or operation."'); |
| 76 shouldThrow('setValueAsNumberAndGetValue(Infinity)', '"NotSupportedError: The im
plementation did not support the requested type of object or operation."'); | 76 shouldThrow('setValueAsNumberAndGetValue(Infinity)', '"NotSupportedError: The im
plementation did not support the requested type of object or operation."'); |
| 77 shouldThrow('setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY)', '"NotSuppor
tedError: The implementation did not support the requested type of object or ope
ration."'); | 77 shouldThrow('setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY)', '"NotSuppor
tedError: The implementation did not support the requested type of object or ope
ration."'); |
| 78 shouldThrow('setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY)', '"NotSuppor
tedError: The implementation did not support the requested type of object or ope
ration."'); | 78 shouldThrow('setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY)', '"NotSuppor
tedError: The implementation did not support the requested type of object or ope
ration."'); |
| 79 </script> | 79 </script> |
| 80 <script src="../../js/resources/js-test-post.js"></script> | |
| 81 </body> | 80 </body> |
| 82 </html> | 81 </html> |
| OLD | NEW |