diff options
3 files changed, 94 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.get_variant.page b/tests/scanner/Regress-1.0-C-expected/Regress.get_variant.page new file mode 100644 index 00000000..239c7502 --- /dev/null +++ b/tests/scanner/Regress-1.0-C-expected/Regress.get_variant.page @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<page id="Regress.get_variant" + type="topic" + style="function" + 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="function" type="guide"/> + <api:function> + <api:returns> + <api:type>GVariant*</api:type> + </api:returns> + <api:name>regress_get_variant</api:name> + </api:function> + </info> + <title>regress_get_variant</title> + <synopsis><code mime="text/x-csrc"> +GVariant* regress_get_variant (void); + </code></synopsis> + + +<terms> +<item> +<title><code>Returns</code></title> + <p>A new variant</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.get_variant.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.get_variant.page new file mode 100644 index 00000000..47e3ff08 --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.get_variant.page @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<page id="Regress.get_variant" + type="topic" + style="function" + 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="function" type="guide"/> + <api:function> + <api:returns> + <api:type>GLib.Variant</api:type> + </api:returns> + <api:name>regress_get_variant</api:name> + </api:function> + </info> + <title>Regress.get_variant</title> + <synopsis><code mime="text/x-gjs"> +function get_variant(): <link href="../GLib-2.0/GLib.Variant.html">GLib.Variant</link> { + // Gjs wrapper for regress_get_variant() +} + </code></synopsis> + + +<terms> +<item> +<title><code>Returns</code></title> + <p>A new variant</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.get_variant.page b/tests/scanner/Regress-1.0-Python-expected/Regress.get_variant.page new file mode 100644 index 00000000..a6e410da --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.get_variant.page @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<page id="Regress.get_variant" + type="topic" + style="function" + 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="function" type="guide"/> + <api:function> + <api:returns> + <api:type>GLib.Variant</api:type> + </api:returns> + <api:name>regress_get_variant</api:name> + </api:function> + </info> + <title>Regress.get_variant</title> + <synopsis><code mime="text/x-python"> +@returns(GLib.Variant) +def get_variant(): + # Python wrapper for regress_get_variant() + </code></synopsis> + + +<terms> +<item> +<title><code>Returns</code></title> +{formatter.format(node, node.retval.doc)} +</item> +</terms> + +</page> |