summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Python-expected
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2021-04-08 00:04:58 +0200
committerEmmanuele Bassi <ebassi@gmail.com>2022-01-11 19:01:16 +0000
commit99bbf61ce531eb5c5900faf8326515d79ff3d8e6 (patch)
tree04a305068e5cbfe2ffbc9cc4840416e290b900f2 /tests/scanner/Regress-1.0-Python-expected
parent18ad729f3bab49d52d3c7ffbd8982c53b168fdd6 (diff)
downloadgobject-introspection-99bbf61ce531eb5c5900faf8326515d79ff3d8e6.tar.gz
regress: Add Fundamental type with no set/get-value-func's
A fundamental type may or may not provide set and get value functions, the regress implementations always provide one, so define a new type with no such functions so that we can test this case in Gjs. To avoid repeating lots of duplicated code, we re-use the same functions of RegressTestFundamentalObject when possible, by using the same structure.
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected')
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc-data.page16
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.get_data.page43
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object.page30
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.page57
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalSubObjectNoGetSetFunc.page60
5 files changed, 206 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc-data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc-data.page
new file mode 100644
index 00000000..d3eb4fab
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc-data.page
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<page id="Regress.TestFundamentalObjectNoGetSetFunc-data"
+ 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.TestFundamentalObjectNoGetSetFunc"
+ group="field"
+ type="guide"/>
+ </info>
+ <title>Regress.TestFundamentalObjectNoGetSetFunc->data</title>
+
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.get_data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.get_data.page
new file mode 100644
index 00000000..688016ce
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.get_data.page
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<page id="Regress.TestFundamentalObjectNoGetSetFunc.get_data"
+ type="topic"
+ style="method"
+ 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.TestFundamentalObjectNoGetSetFunc"
+ group="method"
+ type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>unicode</api:type>
+ </api:returns>
+ <api:name>regress_test_fundamental_object_no_get_set_func_get_data</api:name>
+ <api:arg>
+ <api:type>Regress.TestFundamentalObjectNoGetSetFunc</api:type>
+ <api:name>self</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>Regress.TestFundamentalObjectNoGetSetFunc.get_data</title>
+ <synopsis><code mime="text/x-python">
+@accepts(Regress.TestFundamentalObjectNoGetSetFunc)
+@returns(unicode)
+def get_data(self):
+ # Python wrapper for regress_test_fundamental_object_no_get_set_func_get_data()
+ </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>self</code></title>
+
+</item>
+<item>
+<title><code>Returns</code></title>
+{formatter.format(node, node.retval.doc)}
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object.page
new file mode 100644
index 00000000..ff2e921d
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object.page
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<page id="Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object"
+ 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="Regress.TestFundamentalObjectNoGetSetFunc"
+ group="function"
+ type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>none</api:type>
+ </api:returns>
+ <api:name>regress_test_fundamental_object_no_get_set_func_make_compatible_with_fundamental_sub_object</api:name>
+ </api:function>
+ </info>
+ <title>Regress.TestFundamentalObjectNoGetSetFunc.make_compatible_with_fundamental_sub_object</title>
+ <synopsis><code mime="text/x-python">
+@returns(none)
+def make_compatible_with_fundamental_sub_object():
+ # Python wrapper for regress_test_fundamental_object_no_get_set_func_make_compatible_with_fundamental_sub_object()
+ </code></synopsis>
+
+
+<terms>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.page
new file mode 100644
index 00000000..bc2c8940
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalObjectNoGetSetFunc.page
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<page id="Regress.TestFundamentalObjectNoGetSetFunc"
+ 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.TestFundamentalObjectNoGetSetFunc</title>
+ <synopsis><code>
+from gi.repository import Regress
+
+test_fundamental_object_no_get_set_func = Regress.TestFundamentalObjectNoGetSetFunc()
+ </code></synopsis>
+ <p>Just like a <link xref="Regress.TestFundamentalObject"/> but without gvalue setter and getter</p>
+
+ <synopsis>
+ <title>Hierarchy</title>
+ <tree>
+ <item>
+ <code>Regress.TestFundamentalObjectNoGetSetFunc</code>
+ </item>
+ </tree>
+ </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="property" style="linklist">
+ <title>Properties</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="signal" style="linklist">
+ <title>Signals</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="vfunc" style="linklist">
+ <title>Virtual 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>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalSubObjectNoGetSetFunc.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalSubObjectNoGetSetFunc.page
new file mode 100644
index 00000000..ee64d1c8
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestFundamentalSubObjectNoGetSetFunc.page
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<page id="Regress.TestFundamentalSubObjectNoGetSetFunc"
+ 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.TestFundamentalSubObjectNoGetSetFunc</title>
+ <synopsis><code>
+from gi.repository import Regress
+
+test_fundamental_sub_object_no_get_set_func = Regress.TestFundamentalSubObjectNoGetSetFunc()
+ </code></synopsis>
+
+
+ <synopsis>
+ <title>Hierarchy</title>
+ <tree>
+ <item>
+ <code>Regress.TestFundamentalObjectNoGetSetFunc</code>
+ <item>
+ <code>Regress.TestFundamentalSubObjectNoGetSetFunc</code>
+ </item>
+ </item>
+ </tree>
+ </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="property" style="linklist">
+ <title>Properties</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="signal" style="linklist">
+ <title>Signals</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="vfunc" style="linklist">
+ <title>Virtual 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>