diff options
Diffstat (limited to 'testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml')
-rw-r--r-- | testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml new file mode 100644 index 000000000..54aef1f87 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd"> +<Definitions> + <webidl>interface ColorCreator { + object createColor(float v1, float v2, float v3, optional float alpha = 3.5); +};</webidl> + <Interface name="ColorCreator" id="::ColorCreator"> + <webidl>interface ColorCreator { + object createColor(float v1, float v2, float v3, optional float alpha = 3.5); +};</webidl> + <Operation name="createColor" id="::ColorCreator::createColor"> + <webidl> object createColor(float v1, float v2, float v3, optional float alpha = 3.5);</webidl> + <Type type="object"/> + <ArgumentList> + <Argument name="v1"> + <Type type="float"/> + </Argument> + <Argument name="v2"> + <Type type="float"/> + </Argument> + <Argument name="v3"> + <Type type="float"/> + </Argument> + <Argument optional="optional" name="alpha" value="3.5"> + <Type type="float"/> + </Argument> + </ArgumentList> + </Operation> + </Interface> +</Definitions> |