OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/js-test-pre.js"></script> | 2 <script src="resources/js-test-pre.js"></script> |
3 <script> | 3 <script> |
4 description("Exercise WebIDL type conversions."); | 4 description("Exercise WebIDL type conversions."); |
5 | 5 |
6 quiet = true; | 6 quiet = true; |
7 evalAndLog("converter = window.internals.typeConversions()"); | 7 evalAndLog("converter = window.internals.typeConversions()"); |
8 debug(""); | 8 debug(""); |
9 | 9 |
10 function verifyAttribute(attribute) | 10 function verifyAttribute(attribute) |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 convertThrows(type, "-1.99"); | 423 convertThrows(type, "-1.99"); |
424 convertThrows(type, "4660.99"); | 424 convertThrows(type, "4660.99"); |
425 convertThrows(type, "Infinity"); | 425 convertThrows(type, "Infinity"); |
426 convertThrows(type, "-Infinity"); | 426 convertThrows(type, "-Infinity"); |
427 convertThrows(type, "NaN"); | 427 convertThrows(type, "NaN"); |
428 testNonNumericToNumericEnforceRange(type); | 428 testNonNumericToNumericEnforceRange(type); |
429 convertThrows(type, "{valueOf:function(){throw new Error('custom');}}"); | 429 convertThrows(type, "{valueOf:function(){throw new Error('custom');}}"); |
430 debug(""); | 430 debug(""); |
431 | 431 |
432 </script> | 432 </script> |
433 <script src="resources/js-test-post.js"></script> | |
OLD | NEW |