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

Unified Diff: Source/bindings/tests/results/core/TestDictionary.cpp

Issue 937773002: IDL: Support default values for dictionary members of union types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: Source/bindings/tests/results/core/TestDictionary.cpp
diff --git a/Source/bindings/tests/results/core/TestDictionary.cpp b/Source/bindings/tests/results/core/TestDictionary.cpp
index a948f576cc6b9f32aa3b0c80f5ba7b277c74ec8f..b1e3bcbc2ecfa60cd63d0f5d9cd1b94d8ea2c33b 100644
--- a/Source/bindings/tests/results/core/TestDictionary.cpp
+++ b/Source/bindings/tests/results/core/TestDictionary.cpp
@@ -12,8 +12,10 @@ namespace blink {
TestDictionary::TestDictionary()
{
+ setDoubleOrStringMember(DoubleOrString::fromDouble(3.14));
setEnumMember(String("foo"));
setLongMember(1);
+ setOtherDoubleOrStringMember(DoubleOrString::fromString(String("default string value")));
setRestrictedDoubleMember(3.14);
setStringOrNullMember(String("default string value"));
setUnrestrictedDoubleMember(3.14);

Powered by Google App Engine
This is Rietveld 408576698