OLD | NEW |
1 Exercise WebIDL type conversions. | 1 Exercise WebIDL type conversions. |
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 converter = window.internals.typeConversions() | 6 converter = window.internals.typeConversions() |
7 | 7 |
8 converter.testLong = 0 | 8 converter.testLong = 0 |
9 PASS converter.testLong is 0 | 9 PASS converter.testLong is 0 |
10 converter.testLong = -0 | 10 converter.testLong = -0 |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 converter.testEnforceRangeUnsignedShort = '' | 1011 converter.testEnforceRangeUnsignedShort = '' |
1012 PASS converter.testEnforceRangeUnsignedShort is 0 | 1012 PASS converter.testEnforceRangeUnsignedShort is 0 |
1013 converter.testEnforceRangeUnsignedShort = '1' | 1013 converter.testEnforceRangeUnsignedShort = '1' |
1014 PASS converter.testEnforceRangeUnsignedShort is 1 | 1014 PASS converter.testEnforceRangeUnsignedShort is 1 |
1015 PASS converter.testEnforceRangeUnsignedShort = 'abc' threw exception TypeError:
Failed to set the 'testEnforceRangeUnsignedShort' property on 'TypeConversions':
Value is not of type 'unsigned short'.. | 1015 PASS converter.testEnforceRangeUnsignedShort = 'abc' threw exception TypeError:
Failed to set the 'testEnforceRangeUnsignedShort' property on 'TypeConversions':
Value is not of type 'unsigned short'.. |
1016 converter.testEnforceRangeUnsignedShort = null | 1016 converter.testEnforceRangeUnsignedShort = null |
1017 PASS converter.testEnforceRangeUnsignedShort is 0 | 1017 PASS converter.testEnforceRangeUnsignedShort is 0 |
1018 PASS converter.testEnforceRangeUnsignedShort = undefined threw exception TypeErr
or: Failed to set the 'testEnforceRangeUnsignedShort' property on 'TypeConversio
ns': Value is not of type 'unsigned short'.. | 1018 PASS converter.testEnforceRangeUnsignedShort = undefined threw exception TypeErr
or: Failed to set the 'testEnforceRangeUnsignedShort' property on 'TypeConversio
ns': Value is not of type 'unsigned short'.. |
1019 PASS converter.testEnforceRangeUnsignedShort = {valueOf:function(){throw new Err
or('custom');}} threw exception Error: custom. | 1019 PASS converter.testEnforceRangeUnsignedShort = {valueOf:function(){throw new Err
or('custom');}} threw exception Error: custom. |
1020 | 1020 |
| 1021 converter.testByteString = '!@#123ABCabc\x00\x80\xFF\r\n\t' |
| 1022 PASS converter.testByteString is "!@#123ABCabc\u0000ÿ\r\n\t" |
| 1023 PASS converter.testByteString = '\u0100' threw exception TypeError: Failed to se
t the 'testByteString' property on 'TypeConversions': Value is not a valid ByteS
tring.. |
| 1024 PASS converter.testByteString is "!@#123ABCabc\u0000ÿ\r\n\t" |
1021 PASS successfullyParsed is true | 1025 PASS successfullyParsed is true |
1022 | 1026 |
1023 TEST COMPLETE | 1027 TEST COMPLETE |
1024 | 1028 |
OLD | NEW |