diff options
Diffstat (limited to 'testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml')
-rw-r--r-- | testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml new file mode 100644 index 000000000..22d9fdd25 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd"> +<Definitions> + <webidl>interface A { +}; +interface B { +}; +interface C { + void f(<ref>A</ref>? x); + void f(<ref>B</ref>? x); + +};</webidl> + <Interface name="A" id="::A"> + <webidl>interface A { +};</webidl> + </Interface> + <Interface name="B" id="::B"> + <webidl>interface B { +};</webidl> + </Interface> + <Interface name="C" id="::C"> + <webidl>interface C { + void f(<ref>A</ref>? x); + void f(<ref>B</ref>? x); + +};</webidl> + <Operation name="f" id="::C::f"> + <webidl> void f(<ref>A</ref>? x);</webidl> + <Type type="void"/> + <ArgumentList> + <Argument name="x"> + <Type name="A" nullable="nullable"/> + </Argument> + </ArgumentList> + </Operation> + <Operation name="f" id="::C::f"> + <webidl> void f(<ref>B</ref>? x);</webidl> + <Type type="void"/> + <ArgumentList> + <Argument name="x"> + <Type name="B" nullable="nullable"/> + </Argument> + </ArgumentList> + </Operation> + </Interface> +</Definitions> |