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

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

Issue 309553002: Add ByteString support to IDL bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add [Default=NullString] support 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 | Annotate | Revision Log
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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = {toString: function() { throw Error(); }} threw exception Error.
1025 PASS converter.testByteString is "!@#123ABCabc\u0000€ÿ\r\n\t"
1026 converter.testByteString = true
1027 PASS converter.testByteString is "true"
1028 converter.testByteString = 123
1029 PASS converter.testByteString is "123"
1030 converter.testByteString = null
1031 PASS converter.testByteString is "null"
1032 converter.testByteString = undefined
1033 PASS converter.testByteString is "undefined"
1034 PASS converter.setTestByteString('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..
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..
1039 PASS converter.setTestByteStringDefaultNull() did not throw exception.
1040 PASS converter.testByteString is ""
1021 PASS successfullyParsed is true 1041 PASS successfullyParsed is true
1022 1042
1023 TEST COMPLETE 1043 TEST COMPLETE
1024 1044
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698