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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/webidl-type-mapping-expected.txt
diff --git a/LayoutTests/fast/js/webidl-type-mapping-expected.txt b/LayoutTests/fast/js/webidl-type-mapping-expected.txt
index b8e284bce1b1be67f81e2aa76f26c91c1224b01a..47031c558cd8e2c852aff32b786bae8420b106f4 100644
--- a/LayoutTests/fast/js/webidl-type-mapping-expected.txt
+++ b/LayoutTests/fast/js/webidl-type-mapping-expected.txt
@@ -1018,6 +1018,26 @@ PASS converter.testEnforceRangeUnsignedShort is 0
PASS converter.testEnforceRangeUnsignedShort = undefined threw exception TypeError: Failed to set the 'testEnforceRangeUnsignedShort' property on 'TypeConversions': Value is not of type 'unsigned short'..
PASS converter.testEnforceRangeUnsignedShort = {valueOf:function(){throw new Error('custom');}} threw exception Error: custom.
+converter.testByteString = '!@#123ABCabc\x00\x80\xFF\r\n\t'
+PASS converter.testByteString is "!@#123ABCabc\u0000€ÿ\r\n\t"
+PASS converter.testByteString = '\u0100' threw exception TypeError: Failed to set the 'testByteString' property on 'TypeConversions': Value is not a valid ByteString..
+PASS converter.testByteString = {toString: function() { throw Error(); }} threw exception Error.
+PASS converter.testByteString is "!@#123ABCabc\u0000€ÿ\r\n\t"
+converter.testByteString = true
+PASS converter.testByteString is "true"
+converter.testByteString = 123
+PASS converter.testByteString is "123"
+converter.testByteString = null
+PASS converter.testByteString is "null"
+converter.testByteString = undefined
+PASS converter.testByteString is "undefined"
+PASS converter.setTestByteString('abc') did not throw exception.
+PASS converter.setTestByteStringDefaultNull('abc') did not throw exception.
+PASS converter.setTestByteString('\u0100') threw exception TypeError: Failed to execute 'setTestByteString' on 'TypeConversions': Value is not a valid ByteString..
+PASS converter.setTestByteStringDefaultNull('\u0100') threw exception TypeError: Failed to execute 'setTestByteStringDefaultNull' on 'TypeConversions': Value is not a valid ByteString..
+PASS converter.setTestByteString() threw exception TypeError: Failed to execute 'setTestByteString' on 'TypeConversions': 1 argument required, but only 0 present..
+PASS converter.setTestByteStringDefaultNull() did not throw exception.
+PASS converter.testByteString is ""
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698