summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json')
-rw-r--r--testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json93
1 files changed, 93 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json b/testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json
new file mode 100644
index 000000000..6ca32576b
--- /dev/null
+++ b/testing/web-platform/tests/resources/webidl2/test/syntax/json/operation-optional-arg.json
@@ -0,0 +1,93 @@
+[
+ {
+ "type": "interface",
+ "name": "ColorCreator",
+ "partial": false,
+ "members": [
+ {
+ "type": "operation",
+ "getter": false,
+ "setter": false,
+ "creator": false,
+ "deleter": false,
+ "legacycaller": false,
+ "static": false,
+ "stringifier": false,
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "object"
+ },
+ "name": "createColor",
+ "arguments": [
+ {
+ "optional": false,
+ "variadic": false,
+ "extAttrs": [],
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "float"
+ },
+ "name": "v1"
+ },
+ {
+ "optional": false,
+ "variadic": false,
+ "extAttrs": [],
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "float"
+ },
+ "name": "v2"
+ },
+ {
+ "optional": false,
+ "variadic": false,
+ "extAttrs": [],
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "float"
+ },
+ "name": "v3"
+ },
+ {
+ "optional": true,
+ "variadic": false,
+ "extAttrs": [],
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "float"
+ },
+ "name": "alpha",
+ "default": {
+ "type": "number",
+ "value": 3.5
+ }
+ }
+ ],
+ "extAttrs": []
+ }
+ ],
+ "inheritance": null,
+ "extAttrs": []
+ }
+] \ No newline at end of file