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

Unified Diff: Source/bindings/tests/idls/core/TestDictionary.idl

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/idls/core/TestDictionary.idl
diff --git a/Source/bindings/tests/idls/core/TestDictionary.idl b/Source/bindings/tests/idls/core/TestDictionary.idl
index 89717c875110633de582518b3d404d133e728422..e250bd20f94164f5b6a31aacb948be4ff62506aa 100644
--- a/Source/bindings/tests/idls/core/TestDictionary.idl
+++ b/Source/bindings/tests/idls/core/TestDictionary.idl
@@ -24,7 +24,8 @@ dictionary TestDictionary {
object? objectOrNullMember;
[ImplementedAs=createMember] boolean create;
[DeprecateAs=CreateMember, ImplementedAs=createMember] boolean deprecatedCreateMember;
- (double or DOMString) doubleOrStringMember;
+ (double or DOMString) doubleOrStringMember = 3.14;
+ (double or DOMString) otherDoubleOrStringMember = "default string value";
(TestInterface2 or Uint8Array) testInterface2OrUint8ArrayMember;
sequence<InternalDictionary> internalDictionarySequenceMember;
Uint8Array uint8ArrayMember;

Powered by Google App Engine
This is Rietveld 408576698