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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 PASS converter.testByteString is "null" | 1031 PASS converter.testByteString is "null" |
1032 converter.testByteString = undefined | 1032 converter.testByteString = undefined |
1033 PASS converter.testByteString is "undefined" | 1033 PASS converter.testByteString is "undefined" |
1034 PASS converter.setTestByteString('abc') did not throw exception. | 1034 PASS converter.setTestByteString('abc') did not throw exception. |
1035 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. | 1035 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. |
1036 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.. |
1037 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.. |
1038 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.. |
1039 PASS converter.setTestByteStringDefaultNull() did not throw exception. | 1039 PASS converter.setTestByteStringDefaultNull() did not throw exception. |
1040 PASS converter.testByteString is "" | 1040 PASS converter.testByteString is "" |
| 1041 converter.testScalarValueString = '!@#123ABCabc\x00\x80\xFF\r\n\t' |
| 1042 PASS converter.testScalarValueString is "!@#123ABCabc\u0000ÿ\r\n\t" |
| 1043 converter.testScalarValueString = '\u0100' |
| 1044 PASS converter.testScalarValueString is "Ā" |
| 1045 PASS converter.testScalarValueString = {toString: function() { throw Error(); }}
threw exception Error. |
| 1046 PASS converter.testScalarValueString is "Ā" |
| 1047 converter.testScalarValueString = "���" |
| 1048 PASS converter.testScalarValueString is "�" |
| 1049 converter.testScalarValueString = "���" |
| 1050 PASS converter.testScalarValueString is "�" |
| 1051 converter.testScalarValueString = "���\u0000" |
| 1052 PASS converter.testScalarValueString is "�\u0000" |
| 1053 converter.testScalarValueString = "���\u0000" |
| 1054 PASS converter.testScalarValueString is "�\u0000" |
| 1055 converter.testScalarValueString = "������" |
| 1056 PASS converter.testScalarValueString is "��" |
| 1057 converter.testScalarValueString = "𝄞" |
| 1058 PASS converter.testScalarValueString is "𝄞" |
| 1059 converter.testScalarValueString = true |
| 1060 PASS converter.testScalarValueString is "true" |
| 1061 converter.testScalarValueString = 123 |
| 1062 PASS converter.testScalarValueString is "123" |
| 1063 converter.testScalarValueString = null |
| 1064 PASS converter.testScalarValueString is "null" |
| 1065 converter.testScalarValueString = undefined |
| 1066 PASS converter.testScalarValueString is "undefined" |
| 1067 PASS converter.setTestScalarValueString('abc') did not throw exception. |
| 1068 PASS converter.setTestScalarValueStringDefaultNull('abc') did not throw exceptio
n. |
| 1069 PASS converter.setTestScalarValueString('\u0100') did not throw exception. |
| 1070 PASS converter.setTestScalarValueStringDefaultNull('\u0100') did not throw excep
tion. |
| 1071 PASS converter.setTestScalarValueString() threw exception TypeError: Failed to e
xecute 'setTestScalarValueString' on 'TypeConversions': 1 argument required, but
only 0 present.. |
| 1072 PASS converter.setTestScalarValueStringDefaultNull() did not throw exception. |
| 1073 PASS converter.testScalarValueString is "" |
1041 PASS successfullyParsed is true | 1074 PASS successfullyParsed is true |
1042 | 1075 |
1043 TEST COMPLETE | 1076 TEST COMPLETE |
1044 | 1077 |
OLD | NEW |