Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 574 convert(type, "-Number.MIN_VALUE", "0"); | 574 convert(type, "-Number.MIN_VALUE", "0"); |
| 575 convert(type, "1.99", "1"); | 575 convert(type, "1.99", "1"); |
| 576 convertThrows(type, "-1.99"); | 576 convertThrows(type, "-1.99"); |
| 577 convertThrows(type, "Infinity"); | 577 convertThrows(type, "Infinity"); |
| 578 convertThrows(type, "-Infinity"); | 578 convertThrows(type, "-Infinity"); |
| 579 convertThrows(type, "NaN"); | 579 convertThrows(type, "NaN"); |
| 580 testNonNumericToNumericEnforceRange(type); | 580 testNonNumericToNumericEnforceRange(type); |
| 581 convertThrows(type, "{valueOf:function(){throw new Error('custom');}}"); | 581 convertThrows(type, "{valueOf:function(){throw new Error('custom');}}"); |
| 582 debug(""); | 582 debug(""); |
| 583 | 583 |
| 584 evalAndLog("converter.testByteString = '!@#123ABCabc\\x00\\x80\\xFF\\r\\n\\t'"); | |
|
jsbell
2014/05/30 19:14:54
I need to add a case that assigns a non-string (e.
| |
| 585 shouldBeEqualToString("converter.testByteString", "!@#123ABCabc\x00\x80\xFF\r\n\ t"); | |
| 586 shouldThrow("converter.testByteString = '\\u0100'"); | |
| 587 shouldBeEqualToString("converter.testByteString", "!@#123ABCabc\x00\x80\xFF\r\n\ t"); | |
| 588 | |
| 584 </script> | 589 </script> |
| OLD | NEW |