Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: LayoutTests/fast/js/webidl-type-mapping-expected.txt

Issue 337373002: Add [TreatReturnedNullStringAs] support for ByteString. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add test Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/js/webidl-type-mapping.html ('k') | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
1028 converter.testByteString = 123 1032 converter.testByteString = 123
1029 PASS converter.testByteString is "123" 1033 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"
1030 converter.testByteString = null 1038 converter.testByteString = null
1031 PASS converter.testByteString is "null" 1039 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"
1032 converter.testByteString = undefined 1044 converter.testByteString = undefined
1033 PASS converter.testByteString is "undefined" 1045 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"
1034 PASS converter.setTestByteString('abc') did not throw exception. 1050 PASS converter.setTestByteString('abc') did not throw exception.
1035 PASS converter.setTestByteStringDefaultNull('abc') did not throw exception. 1051 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.. 1052 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.. 1053 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.. 1054 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. 1055 PASS converter.setTestByteStringDefaultNull() did not throw exception.
1040 PASS converter.testByteString is "" 1056 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.
1041 PASS successfullyParsed is true 1061 PASS successfullyParsed is true
1042 1062
1043 TEST COMPLETE 1063 TEST COMPLETE
1044 1064
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/webidl-type-mapping.html ('k') | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698