diff options
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/widlproc/test/valid/xml/uniontype.widlprocxml')
-rw-r--r-- | testing/web-platform/tests/resources/webidl2/test/widlproc/test/valid/xml/uniontype.widlprocxml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/widlproc/test/valid/xml/uniontype.widlprocxml b/testing/web-platform/tests/resources/webidl2/test/widlproc/test/valid/xml/uniontype.widlprocxml new file mode 100644 index 000000000..7d0880799 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/widlproc/test/valid/xml/uniontype.widlprocxml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd"> +<Definitions> + <webidl>interface Union { + attribute (float or (Date or <ref>Event</ref>) or (<ref>Node</ref> or DOMString)?) test; +};</webidl> + <Interface name="Union" id="::Union"> + <webidl>interface Union { + attribute (float or (Date or <ref>Event</ref>) or (<ref>Node</ref> or DOMString)?) test; +};</webidl> + <Attribute name="test" id="::Union::test"> + <webidl> attribute (float or (Date or <ref>Event</ref>) or (<ref>Node</ref> or DOMString)?) test;</webidl> + <Type type="union"> + <Type type="float"/> + <Type type="union"> + <Type type="Date"/> + <Type name="Event"/> + </Type> + <Type type="union" nullable="nullable"> + <Type name="Node"/> + <Type type="DOMString"/> + </Type> + </Type> + </Attribute> + </Interface> +</Definitions> |