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

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

Issue 344693002: Add [TreatReturnedNullStringAs] support for ScalarValueString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 f04cf2ee598ae104d93aa68a2c5ce7167534f38e..84526907e750d07cc609228b0b72603849df46bd 100644
--- a/LayoutTests/fast/js/webidl-type-mapping.html
+++ b/LayoutTests/fast/js/webidl-type-mapping.html
@@ -625,6 +625,10 @@ shouldBeEqualToString("converter.testScalarValueString", "\u0100");
["true", "123", "null", "undefined"].forEach(function(value) {
evalAndLog("converter.testScalarValueString = " + value);
shouldBeEqualToString("converter.testScalarValueString", value);
+ shouldBeEqualToString("converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute", value);
+ shouldBeEqualToString("converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute", value);
+ shouldBeEqualToString("converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod()", value);
+ shouldBeEqualToString("converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod()", value);
});
shouldNotThrow("converter.setTestScalarValueString('abc')");
shouldNotThrow("converter.setTestScalarValueStringDefaultNull('abc')");
@@ -633,5 +637,9 @@ shouldNotThrow("converter.setTestScalarValueStringDefaultNull('\\u0100')");
shouldThrow("converter.setTestScalarValueString()");
shouldNotThrow("converter.setTestScalarValueStringDefaultNull()");
shouldBeEqualToString("converter.testScalarValueString", "");
+shouldBeNull("converter.testScalarValueStringTreatReturnedNullStringAsNullAttribute");
+shouldBeUndefined("converter.testScalarValueStringTreatReturnedNullStringAsUndefinedAttribute");
+shouldBeNull("converter.getTestScalarValueStringTreatReturnedNullStringAsNullMethod()");
+shouldBeUndefined("converter.getTestScalarValueStringTreatReturnedNullStringAsUndefinedMethod()");
</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