diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-05-04 17:22:05 -0700 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-05-08 17:43:31 -0400 |
commit | 3474d20fe8716608b1156701fdb043add10ebb7d (patch) | |
tree | 2c72adb9d9229b6bf3c7c19b7dea479ec55d13c7 /tests/scanner/Regress-1.0-Python-expected | |
parent | 1dabcc4c17f2eb98ed38eaf4c022d43f29965a61 (diff) | |
download | gobject-introspection-3474d20fe8716608b1156701fdb043add10ebb7d.tar.gz |
tests: add regression test for anonymous struct
C11 which added support for anonymous unions (already supported)
also adds support for anonymous structs.
https://bugzilla.gnome.org/show_bug.cgi?id=766011
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected')
3 files changed, 68 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-None.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-None.page new file mode 100644 index 00000000..45f06a92 --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-None.page @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<page id="Regress.AnonymousUnionAndStruct-None" + type="topic" + style="field" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + <link xref="Regress.AnonymousUnionAndStruct" group="field" type="guide"/> + </info> + <title>Regress.AnonymousUnionAndStruct->None</title> + + +</page> diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-x.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-x.page new file mode 100644 index 00000000..1f2f8f08 --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct-x.page @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<page id="Regress.AnonymousUnionAndStruct-x" + type="topic" + style="field" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + <link xref="Regress.AnonymousUnionAndStruct" group="field" type="guide"/> + </info> + <title>Regress.AnonymousUnionAndStruct->x</title> + + +</page> diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct.page new file mode 100644 index 00000000..1dab19a8 --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnonymousUnionAndStruct.page @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<page id="Regress.AnonymousUnionAndStruct" + type="guide" + style="class" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + <link xref="index" group="class" type="guide"/> + </info> + <title>Regress.AnonymousUnionAndStruct</title> + <synopsis><code> +from gi.repository import Regress + +anonymous_union_and_struct = Regress.AnonymousUnionAndStruct() + </code></synopsis> + + + <links type="topic" ui:expanded="true" + api:type="function" api:mime="text/python" + groups="constructor" style="linklist"> + <title>Constructors</title> + </links> + <links type="topic" ui:expanded="true" + api:type="function" api:mime="text/python" + groups="method" style="linklist"> + <title>Methods</title> + </links> + <links type="topic" ui:expanded="true" + api:type="function" api:mime="text/python" + groups="function" style="linklist"> + <title>Static Functions</title> + </links> + <links type="topic" ui:expanded="true" groups="field" style="linklist"> + <title>Fields</title> + </links> + <links type="topic" ui:expanded="true" groups="#first #default #last" style="linklist"> + <title>Other</title> + </links> +</page> |