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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47031c558cd8e2c852aff32b786bae8420b106f4..a009cc1b643b8b5bb308a4de4cb78bab53046333 100644
--- a/LayoutTests/fast/js/webidl-type-mapping-expected.txt
+++ b/LayoutTests/fast/js/webidl-type-mapping-expected.txt
@@ -1025,12 +1025,28 @@ PASS converter.testByteString = {toString: function() { throw Error(); }} threw
PASS converter.testByteString is "!@#123ABCabc\u0000€ÿ\r\n\t"
converter.testByteString = true
PASS converter.testByteString is "true"
+PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "true"
+PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "true"
+PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "true"
+PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "true"
converter.testByteString = 123
PASS converter.testByteString is "123"
+PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "123"
+PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "123"
+PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "123"
+PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "123"
converter.testByteString = null
PASS converter.testByteString is "null"
+PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "null"
+PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "null"
+PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "null"
+PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is "null"
converter.testByteString = undefined
PASS converter.testByteString is "undefined"
+PASS converter.testByteStringTreatReturnedNullStringAsNullAttribute is "undefined"
+PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is "undefined"
+PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is "undefined"
+PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() 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..
@@ -1038,6 +1054,10 @@ PASS converter.setTestByteStringDefaultNull('\u0100') threw exception TypeError:
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 converter.testByteStringTreatReturnedNullStringAsNullAttribute is null
+PASS converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute is undefined.
+PASS converter.getTestByteStringTreatReturnedNullStringAsNullMethod() is null
+PASS converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod() is undefined.
PASS successfullyParsed is true
TEST COMPLETE
« 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