| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. | 1051 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.. | 1052 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.. | 1053 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.. | 1054 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. | 1055 PASS converter.setTestByteStringDefaultNull() did not throw exception. |
| 1056 PASS converter.testByteString is "" | 1056 PASS converter.testByteString is "" |
| 1057 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is null | 1057 PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is null |
| 1058 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is unde
fined. | 1058 PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is unde
fined. |
| 1059 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is null | 1059 PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is null |
| 1060 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is un
defined. | 1060 PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is un
defined. |
| 1061 converter.testScalarValueString = '!@#123ABCabc\x00\x80\xFF\r\n\t' | 1061 converter.testUSVString = '!@#123ABCabc\x00\x80\xFF\r\n\t' |
| 1062 PASS converter.testScalarValueString is "!@#123ABCabc\u0000ÿ\r\n\t" | 1062 PASS converter.testUSVString is "!@#123ABCabc\u0000ÿ\r\n\t" |
| 1063 converter.testScalarValueString = '\u0100' | 1063 converter.testUSVString = '\u0100' |
| 1064 PASS converter.testScalarValueString is "Ā" | 1064 PASS converter.testUSVString is "Ā" |
| 1065 PASS converter.testScalarValueString = {toString: function() { throw Error(); }}
threw exception Error. | 1065 PASS converter.testUSVString = {toString: function() { throw Error(); }} threw e
xception Error. |
| 1066 PASS converter.testScalarValueString is "Ā" | 1066 PASS converter.testUSVString is "Ā" |
| 1067 converter.testScalarValueString = "���" | 1067 converter.testUSVString = "���" |
| 1068 PASS converter.testScalarValueString is "�" | 1068 PASS converter.testUSVString is "�" |
| 1069 converter.testScalarValueString = "���" | 1069 converter.testUSVString = "���" |
| 1070 PASS converter.testScalarValueString is "�" | 1070 PASS converter.testUSVString is "�" |
| 1071 converter.testScalarValueString = "���\u0000" | 1071 converter.testUSVString = "���\u0000" |
| 1072 PASS converter.testScalarValueString is "�\u0000" | 1072 PASS converter.testUSVString is "�\u0000" |
| 1073 converter.testScalarValueString = "���\u0000" | 1073 converter.testUSVString = "���\u0000" |
| 1074 PASS converter.testScalarValueString is "�\u0000" | 1074 PASS converter.testUSVString is "�\u0000" |
| 1075 converter.testScalarValueString = "������" | 1075 converter.testUSVString = "������" |
| 1076 PASS converter.testScalarValueString is "��" | 1076 PASS converter.testUSVString is "��" |
| 1077 converter.testScalarValueString = "𝄞" | 1077 converter.testUSVString = "𝄞" |
| 1078 PASS converter.testScalarValueString is "𝄞" | 1078 PASS converter.testUSVString is "𝄞" |
| 1079 converter.testScalarValueString = true | 1079 converter.testUSVString = true |
| 1080 PASS converter.testScalarValueString is "true" | 1080 PASS converter.testUSVString is "true" |
| 1081 PASS converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute is "t
rue" | 1081 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "true" |
| 1082 PASS converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute
is "true" | 1082 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "true
" |
| 1083 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod() is
"true" | 1083 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "true" |
| 1084 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod(
) is "true" | 1084 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "tr
ue" |
| 1085 converter.testScalarValueString = 123 | 1085 converter.testUSVString = 123 |
| 1086 PASS converter.testScalarValueString is "123" | 1086 PASS converter.testUSVString is "123" |
| 1087 PASS converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute is "1
23" | 1087 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "123" |
| 1088 PASS converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute
is "123" | 1088 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "123" |
| 1089 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod() is
"123" | 1089 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "123" |
| 1090 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod(
) is "123" | 1090 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "12
3" |
| 1091 converter.testScalarValueString = null | 1091 converter.testUSVString = null |
| 1092 PASS converter.testScalarValueString is "null" | 1092 PASS converter.testUSVString is "null" |
| 1093 PASS converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute is "n
ull" | 1093 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "null" |
| 1094 PASS converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute
is "null" | 1094 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "null
" |
| 1095 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod() is
"null" | 1095 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "null" |
| 1096 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod(
) is "null" | 1096 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "nu
ll" |
| 1097 converter.testScalarValueString = undefined | 1097 converter.testUSVString = undefined |
| 1098 PASS converter.testScalarValueString is "undefined" | 1098 PASS converter.testUSVString is "undefined" |
| 1099 PASS converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute is "u
ndefined" | 1099 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is "undefined
" |
| 1100 PASS converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute
is "undefined" | 1100 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is "unde
fined" |
| 1101 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod() is
"undefined" | 1101 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is "undefin
ed" |
| 1102 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod(
) is "undefined" | 1102 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is "un
defined" |
| 1103 PASS converter.setTestScalarValueString('abc') did not throw exception. | 1103 PASS converter.setTestUSVString('abc') did not throw exception. |
| 1104 PASS converter.setTestScalarValueStringDefaultNull('abc') did not throw exceptio
n. | 1104 PASS converter.setTestUSVStringDefaultNull('abc') did not throw exception. |
| 1105 PASS converter.setTestScalarValueString('\u0100') did not throw exception. | 1105 PASS converter.setTestUSVString('\u0100') did not throw exception. |
| 1106 PASS converter.setTestScalarValueStringDefaultNull('\u0100') did not throw excep
tion. | 1106 PASS converter.setTestUSVStringDefaultNull('\u0100') did not throw exception. |
| 1107 PASS converter.setTestScalarValueString() threw exception TypeError: Failed to e
xecute 'setTestScalarValueString' on 'TypeConversions': 1 argument required, but
only 0 present.. | 1107 PASS converter.setTestUSVString() threw exception TypeError: Failed to execute '
setTestUSVString' on 'TypeConversions': 1 argument required, but only 0 present.
. |
| 1108 PASS converter.setTestScalarValueStringDefaultNull() did not throw exception. | 1108 PASS converter.setTestUSVStringDefaultNull() did not throw exception. |
| 1109 PASS converter.testScalarValueString is "" | 1109 PASS converter.testUSVString is "" |
| 1110 PASS converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute is nu
ll | 1110 PASS converter.testUSVStringTreatReturnedNullStringAsNullAttribute is null |
| 1111 PASS converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute
is undefined. | 1111 PASS converter.testUSVStringTreatReturnedNullStringAsUndefinedAttribute is undef
ined. |
| 1112 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod() is
null | 1112 PASS converter.getTestUSVStringTreatReturnedNullStringAsNullMethod() is null |
| 1113 PASS converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod(
) is undefined. | 1113 PASS converter.getTestUSVStringTreatReturnedNullStringAsUndefinedMethod() is und
efined. |
| 1114 PASS successfullyParsed is true | 1114 PASS successfullyParsed is true |
| 1115 | 1115 |
| 1116 TEST COMPLETE | 1116 TEST COMPLETE |
| 1117 | 1117 |
| OLD | NEW |