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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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' | 1021 converter.testByteString = '!@#123ABCabc\x00\x80\xFF\r\n\t' |
1022 PASS converter.testByteString is "!@#123ABCabc\u0000ÿ\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.. | 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 = {toString: function() { throw Error(); }} threw
exception Error. | 1024 PASS converter.testByteString = {toString: function() { throw Error(); }} threw
exception Error. |
1025 PASS converter.testByteString is "!@#123ABCabc\u0000ÿ\r\n\t" | 1025 PASS converter.testByteString is "!@#123ABCabc\u0000ÿ\r\n\t" |
1026 converter.testByteString = true | 1026 converter.testByteString = true |
1027 PASS converter.testByteString is "true" | 1027 PASS converter.testByteString is "true" |
1028 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "true" | |
1029 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "tru
e" | |
1030 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "true" | |
1031 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "t
rue" | |
1032 converter.testByteString = 123 | 1028 converter.testByteString = 123 |
1033 PASS converter.testByteString is "123" | 1029 PASS converter.testByteString is "123" |
1034 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "123" | |
1035 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "123
" | |
1036 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "123" | |
1037 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "1
23" | |
1038 converter.testByteString = null | 1030 converter.testByteString = null |
1039 PASS converter.testByteString is "null" | 1031 PASS converter.testByteString is "null" |
1040 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "null" | |
1041 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "nul
l" | |
1042 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "null" | |
1043 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "n
ull" | |
1044 converter.testByteString = undefined | 1032 converter.testByteString = undefined |
1045 PASS converter.testByteString is "undefined" | 1033 PASS converter.testByteString is "undefined" |
1046 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "undefine
d" | |
1047 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "und
efined" | |
1048 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "undefi
ned" | |
1049 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "u
ndefined" | |
1050 PASS converter.setTestByteString('abc') did not throw exception. | 1034 PASS converter.setTestByteString('abc') did not throw exception. |
1051 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. | 1035 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. |
1052 PASS converter.setTestByteString('\u0100') threw exception TypeError: Failed to
execute 'setTestByteString' on 'TypeConversions': Value is not a valid ByteStrin
g.. | 1036 PASS converter.setTestByteString('\u0100') threw exception TypeError: Failed to
execute 'setTestByteString' on 'TypeConversions': Value is not a valid ByteStrin
g.. |
1053 PASS converter.setTestByteStringDefaultNull('\u0100') threw exception TypeError:
Failed to execute 'setTestByteStringDefaultNull' on 'TypeConversions': Value is
not a valid ByteString.. | 1037 PASS converter.setTestByteStringDefaultNull('\u0100') threw exception TypeError:
Failed to execute 'setTestByteStringDefaultNull' on 'TypeConversions': Value is
not a valid ByteString.. |
1054 PASS converter.setTestByteString() threw exception TypeError: Failed to execute
'setTestByteString' on 'TypeConversions': 1 argument required, but only 0 presen
t.. | 1038 PASS converter.setTestByteString() threw exception TypeError: Failed to execute
'setTestByteString' on 'TypeConversions': 1 argument required, but only 0 presen
t.. |
1055 PASS converter.setTestByteStringDefaultNull() did not throw exception. | 1039 PASS converter.setTestByteStringDefaultNull() did not throw exception. |
1056 PASS converter.testByteString is "" | 1040 PASS converter.testByteString is "" |
1057 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is null | |
1058 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is unde
fined. | |
1059 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is null | |
1060 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is un
defined. | |
1061 converter.testUSVString = '!@#123ABCabc\x00\x80\xFF\r\n\t' | 1041 converter.testUSVString = '!@#123ABCabc\x00\x80\xFF\r\n\t' |
1062 PASS converter.testUSVString is "!@#123ABCabc\u0000ÿ\r\n\t" | 1042 PASS converter.testUSVString is "!@#123ABCabc\u0000ÿ\r\n\t" |
1063 converter.testUSVString = '\u0100' | 1043 converter.testUSVString = '\u0100' |
1064 PASS converter.testUSVString is "Ā" | 1044 PASS converter.testUSVString is "Ā" |
1065 PASS converter.testUSVString = {toString: function() { throw Error(); }} threw e
xception Error. | 1045 PASS converter.testUSVString = {toString: function() { throw Error(); }} threw e
xception Error. |
1066 PASS converter.testUSVString is "Ā" | 1046 PASS converter.testUSVString is "Ā" |
1067 converter.testUSVString = "���" | 1047 converter.testUSVString = "���" |
1068 PASS converter.testUSVString is "�" | 1048 PASS converter.testUSVString is "�" |
1069 converter.testUSVString = "���" | 1049 converter.testUSVString = "���" |
1070 PASS converter.testUSVString is "�" | 1050 PASS converter.testUSVString is "�" |
1071 converter.testUSVString = "���\u0000" | 1051 converter.testUSVString = "���\u0000" |
1072 PASS converter.testUSVString is "�\u0000" | 1052 PASS converter.testUSVString is "�\u0000" |
1073 converter.testUSVString = "���\u0000" | 1053 converter.testUSVString = "���\u0000" |
1074 PASS converter.testUSVString is "�\u0000" | 1054 PASS converter.testUSVString is "�\u0000" |
1075 converter.testUSVString = "������" | 1055 converter.testUSVString = "������" |
1076 PASS converter.testUSVString is "��" | 1056 PASS converter.testUSVString is "��" |
1077 converter.testUSVString = "𝄞" | 1057 converter.testUSVString = "𝄞" |
1078 PASS converter.testUSVString is "𝄞" | 1058 PASS converter.testUSVString is "𝄞" |
1079 converter.testUSVString = true | 1059 converter.testUSVString = true |
1080 PASS converter.testUSVString is "true" | 1060 PASS converter.testUSVString is "true" |
1081 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "true" | |
1082 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "true
" | |
1083 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "true" | |
1084 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "tr
ue" | |
1085 converter.testUSVString = 123 | 1061 converter.testUSVString = 123 |
1086 PASS converter.testUSVString is "123" | 1062 PASS converter.testUSVString is "123" |
1087 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "123" | |
1088 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "123" | |
1089 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "123" | |
1090 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "12
3" | |
1091 converter.testUSVString = null | 1063 converter.testUSVString = null |
1092 PASS converter.testUSVString is "null" | 1064 PASS converter.testUSVString is "null" |
1093 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "null" | |
1094 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "null
" | |
1095 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "null" | |
1096 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "nu
ll" | |
1097 converter.testUSVString = undefined | 1065 converter.testUSVString = undefined |
1098 PASS converter.testUSVString is "undefined" | 1066 PASS converter.testUSVString is "undefined" |
1099 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "undefined
" | |
1100 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "unde
fined" | |
1101 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "undefin
ed" | |
1102 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "un
defined" | |
1103 PASS converter.setTestUSVString('abc') did not throw exception. | 1067 PASS converter.setTestUSVString('abc') did not throw exception. |
1104 PASS converter.setTestUSVStringDefaultNull('abc') did not throw exception. | 1068 PASS converter.setTestUSVStringDefaultNull('abc') did not throw exception. |
1105 PASS converter.setTestUSVString('\u0100') did not throw exception. | 1069 PASS converter.setTestUSVString('\u0100') did not throw exception. |
1106 PASS converter.setTestUSVStringDefaultNull('\u0100') did not throw exception. | 1070 PASS converter.setTestUSVStringDefaultNull('\u0100') did not throw exception. |
1107 PASS converter.setTestUSVString() threw exception TypeError: Failed to execute '
setTestUSVString' on 'TypeConversions': 1 argument required, but only 0 present.
. | 1071 PASS converter.setTestUSVString() threw exception TypeError: Failed to execute '
setTestUSVString' on 'TypeConversions': 1 argument required, but only 0 present.
. |
1108 PASS converter.setTestUSVStringDefaultNull() did not throw exception. | 1072 PASS converter.setTestUSVStringDefaultNull() did not throw exception. |
1109 PASS converter.testUSVString is "" | 1073 PASS converter.testUSVString is "" |
1110 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is null | |
1111 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is undef
ined. | |
1112 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is null | |
1113 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is und
efined. | |
1114 PASS successfullyParsed is true | 1074 PASS successfullyParsed is true |
1115 | 1075 |
1116 TEST COMPLETE | 1076 TEST COMPLETE |
1117 | 1077 |
OLD | NEW |