summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl')
-rw-r--r--testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl b/testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl
new file mode 100644
index 000000000..c64a14c85
--- /dev/null
+++ b/testing/web-platform/tests/resources/webidl2/test/syntax/idl/dictionary.widl
@@ -0,0 +1,15 @@
+// Extracted from Web IDL editors draft May 31 2011
+dictionary PaintOptions {
+ DOMString? fillPattern = "black";
+ DOMString? strokePattern = null;
+ Point position;
+ // https://heycam.github.io/webidl/#dfn-optional-argument-default-value allows sequences to default to "[]".
+ sequence<long> seq = [];
+ // https://heycam.github.io/webidl/#required-dictionary-member
+ required long reqSeq;
+};
+
+partial dictionary A {
+ long h;
+ long d;
+}; \ No newline at end of file