summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json')
-rw-r--r--testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json b/testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json
new file mode 100644
index 000000000..a947a64a4
--- /dev/null
+++ b/testing/web-platform/tests/resources/webidl2/test/syntax/json/namedconstructor.json
@@ -0,0 +1,42 @@
+[
+ {
+ "type": "interface",
+ "name": "HTMLAudioElement",
+ "partial": false,
+ "members": [],
+ "inheritance": "HTMLMediaElement",
+ "extAttrs": [
+ {
+ "name": "NamedConstructor",
+ "arguments": null,
+ "rhs": {
+ "type": "identifier",
+ "value": "Audio"
+ }
+ },
+ {
+ "name": "NamedConstructor",
+ "arguments": [
+ {
+ "optional": false,
+ "variadic": false,
+ "extAttrs": [],
+ "idlType": {
+ "sequence": false,
+ "generic": null,
+ "nullable": false,
+ "array": false,
+ "union": false,
+ "idlType": "DOMString"
+ },
+ "name": "src"
+ }
+ ],
+ "rhs": {
+ "type": "identifier",
+ "value": "Audio"
+ }
+ }
+ ]
+ }
+] \ No newline at end of file