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

Unified Diff: LayoutTests/fast/js/webidl-type-mapping.html

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 | « no previous file | LayoutTests/fast/js/webidl-type-mapping-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/webidl-type-mapping.html
diff --git a/LayoutTests/fast/js/webidl-type-mapping.html b/LayoutTests/fast/js/webidl-type-mapping.html
index bfb9cdd13d835e4d46c0984a146a84cee9d545af..44c2bf0cb91c234248218b41e86c17f09fc8634f 100644
--- a/LayoutTests/fast/js/webidl-type-mapping.html
+++ b/LayoutTests/fast/js/webidl-type-mapping.html
@@ -589,6 +589,10 @@ shouldBeEqualToString("converter.testByteString", "!@#123ABCabc\x00\x80\xFF\r\n\
["true", "123", "null", "undefined"].forEach(function(value) {
evalAndLog("converter.testByteString = " + value);
shouldBeEqualToString("converter.testByteString", value);
+ shouldBeEqualToString("converter.testByteStringTreatReturnedNullStringAsNullAttribute", value);
+ shouldBeEqualToString("converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute", value);
+ shouldBeEqualToString("converter.getTestByteStringTreatReturnedNullStringAsNullMethod()", value);
+ shouldBeEqualToString("converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod()", value);
});
shouldNotThrow("converter.setTestByteString('abc')");
shouldNotThrow("converter.setTestByteStringDefaultNull('abc')");
@@ -597,5 +601,9 @@ shouldThrow("converter.setTestByteStringDefaultNull('\\u0100')");
shouldThrow("converter.setTestByteString()");
shouldNotThrow("converter.setTestByteStringDefaultNull()");
shouldBeEqualToString("converter.testByteString", "");
+shouldBeNull("converter.testByteStringTreatReturnedNullStringAsNullAttribute");
+shouldBeUndefined("converter.testByteStringTreatReturnedNullStringAsUndefinedAttribute");
+shouldBeNull("converter.getTestByteStringTreatReturnedNullStringAsNullMethod()");
+shouldBeUndefined("converter.getTestByteStringTreatReturnedNullStringAsUndefinedMethod()");
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/js/webidl-type-mapping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698