[gobject-introspection] Fix scanner tests for new functions added with !32



commit c220c1f8a0d20e6afdfbe7b0ef9da641f945e620
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Jul 22 10:50:33 2018 +0200

    Fix scanner tests for new functions added with !32
    
    These tests only get run with autotools atm

 .../Regress.TestInterface-interface-signal.page    | 30 +++++++++++++++++
 .../Regress.TestInterface.emit_signal.page         | 38 ++++++++++++++++++++++
 .../Regress.TestObj-sig-with-inout-int.page        | 31 ++++++++++++++++++
 .../Regress.TestObj.emit_sig_with_inout_int.page   | 38 ++++++++++++++++++++++
 .../Regress.TestInterface-interface-signal.page    | 30 +++++++++++++++++
 .../Regress.TestInterface.emit_signal.page         | 26 +++++++++++++++
 .../Regress.TestObj-sig-with-inout-int.page        | 31 ++++++++++++++++++
 .../Regress.TestObj.emit_sig_with_inout_int.page   | 26 +++++++++++++++
 .../Regress.TestInterface-interface-signal.page    | 36 ++++++++++++++++++++
 .../Regress.TestInterface.emit_signal.page         | 37 +++++++++++++++++++++
 .../Regress.TestObj-sig-with-inout-int.page        | 37 +++++++++++++++++++++
 .../Regress.TestObj.emit_sig_with_inout_int.page   | 37 +++++++++++++++++++++
 tests/scanner/Regress-1.0-sections-expected.txt    |  2 ++
 13 files changed, 399 insertions(+)
---
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface-interface-signal.page 
b/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface-interface-signal.page
new file mode 100644
index 00000000..d7ac0a75
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface-interface-signal.page
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface-interface-signal"
+      type="topic"
+      style="signal"
+      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.TestInterface" group="signal" type="guide"/>
+    <title type="link" role="topic">interface-signal</title>
+  </info>
+  <title>Regress.TestInterface::interface-signal</title>
+  <synopsis><code mime="text/x-csrc">
+void interface-signal (gpointer ptr);
+  </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>ptr</code></title>
+  <p>the code must look up the signal with
+  g_interface_info_find_signal() in order to get this to work.</p>
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface.emit_signal.page 
b/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface.emit_signal.page
new file mode 100644
index 00000000..cf5f7009
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.TestInterface.emit_signal.page
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface.emit_signal"
+      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.TestInterface" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>void</api:type>
+      </api:returns>
+      <api:name>regress_test_interface_emit_signal</api:name>
+      <api:arg>
+        <api:type>RegressTestInterface*</api:type>
+        <api:name>self</api:name>
+      </api:arg>
+    </api:function>
+  </info>
+  <title>regress_test_interface_emit_signal</title>
+  <synopsis><code mime="text/x-csrc">
+void regress_test_interface_emit_signal (RegressTestInterface* self);
+  </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>self</code></title>
+  <p>the object to emit the signal</p>
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.TestObj-sig-with-inout-int.page 
b/tests/scanner/Regress-1.0-C-expected/Regress.TestObj-sig-with-inout-int.page
new file mode 100644
index 00000000..ce3d96f1
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.TestObj-sig-with-inout-int.page
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj-sig-with-inout-int"
+      type="topic"
+      style="signal"
+      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.TestObj" group="signal" type="guide"/>
+    <title type="link" role="topic">sig-with-inout-int</title>
+  </info>
+  <title>Regress.TestObj::sig-with-inout-int</title>
+  <synopsis><code mime="text/x-csrc">
+void sig-with-inout-int (gpointer position);
+  </code></synopsis>
+  <p>This signal is modeled after GtkEditable::insert-text.</p>
+
+<terms>
+<item>
+<title><code>position</code></title>
+  <p>The position, in characters, at which to
+    insert the new text. This is an in-out paramter. After the signal
+    emission is finished, it should point after the newly inserted text.</p>
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.TestObj.emit_sig_with_inout_int.page 
b/tests/scanner/Regress-1.0-C-expected/Regress.TestObj.emit_sig_with_inout_int.page
new file mode 100644
index 00000000..3dabfea3
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.TestObj.emit_sig_with_inout_int.page
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj.emit_sig_with_inout_int"
+      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.TestObj" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>void</api:type>
+      </api:returns>
+      <api:name>regress_test_obj_emit_sig_with_inout_int</api:name>
+      <api:arg>
+        <api:type>RegressTestObj*</api:type>
+        <api:name>obj</api:name>
+      </api:arg>
+    </api:function>
+  </info>
+  <title>regress_test_obj_emit_sig_with_inout_int</title>
+  <synopsis><code mime="text/x-csrc">
+void regress_test_obj_emit_sig_with_inout_int (RegressTestObj* obj);
+  </code></synopsis>
+  <p>The signal handler must increment the inout parameter by 1.</p>
+
+<terms>
+<item>
+<title><code>obj</code></title>
+  <p>The object to emit the signal.</p>
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface-interface-signal.page 
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface-interface-signal.page
new file mode 100644
index 00000000..ae24b901
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface-interface-signal.page
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface-interface-signal"
+      type="topic"
+      style="signal"
+      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.TestInterface" group="signal" type="guide"/>
+    <title type="link" role="topic">interface-signal</title>
+  </info>
+  <title>Regress.TestInterface::interface-signal</title>
+  <synopsis><code mime="text/x-gjs">
+connect('interface-signal', function (testInterface, ptr: Number(gint), ): void);
+  </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>testInterface</code></title>
+<p>instance of <link xref="Regress.TestInterface"/> that is emitting the signal</p>
+</item>
+<item>
+<title><code>ptr</code></title>
+  <p>the code must look up the signal with
+  g_interface_info_find_signal() in order to get this to work.</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.emit_signal.page 
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.emit_signal.page
new file mode 100644
index 00000000..4e517366
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestInterface.emit_signal.page
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface.emit_signal"
+      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.TestInterface" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>void</api:type>
+      </api:returns>
+      <api:name>regress_test_interface_emit_signal</api:name>
+    </api:function>
+  </info>
+  <title>Regress.TestInterface.prototype.emit_signal</title>
+  <synopsis><code mime="text/x-gjs">
+function emit_signal(): void {
+    // Gjs wrapper for regress_test_interface_emit_signal()
+}
+  </code></synopsis>
+
+
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-sig-with-inout-int.page 
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-sig-with-inout-int.page
new file mode 100644
index 00000000..a90ab679
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-sig-with-inout-int.page
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj-sig-with-inout-int"
+      type="topic"
+      style="signal"
+      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.TestObj" group="signal" type="guide"/>
+    <title type="link" role="topic">sig-with-inout-int</title>
+  </info>
+  <title>Regress.TestObj::sig-with-inout-int</title>
+  <synopsis><code mime="text/x-gjs">
+connect('sig-with-inout-int', function (testObj, position: Number(gint), ): void);
+  </code></synopsis>
+  <p>This signal is modeled after GtkEditable::insert-text.</p>
+
+<terms>
+<item>
+<title><code>testObj</code></title>
+<p>instance of <link xref="Regress.TestObj"/> that is emitting the signal</p>
+</item>
+<item>
+<title><code>position</code></title>
+  <p>The position, in characters, at which to
+    insert the new text. This is an in-out paramter. After the signal
+    emission is finished, it should point after the newly inserted text.</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.emit_sig_with_inout_int.page 
b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.emit_sig_with_inout_int.page
new file mode 100644
index 00000000..f7f8ecc6
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj.emit_sig_with_inout_int.page
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj.emit_sig_with_inout_int"
+      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.TestObj" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>void</api:type>
+      </api:returns>
+      <api:name>regress_test_obj_emit_sig_with_inout_int</api:name>
+    </api:function>
+  </info>
+  <title>Regress.TestObj.prototype.emit_sig_with_inout_int</title>
+  <synopsis><code mime="text/x-gjs">
+function emit_sig_with_inout_int(): void {
+    // Gjs wrapper for regress_test_obj_emit_sig_with_inout_int()
+}
+  </code></synopsis>
+  <p>The signal handler must increment the inout parameter by 1.</p>
+
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface-interface-signal.page 
b/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface-interface-signal.page
new file mode 100644
index 00000000..7ec79a33
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface-interface-signal.page
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface-interface-signal"
+      type="topic"
+      style="signal"
+      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.TestInterface" group="signal" type="guide"/>
+    <title type="link" role="topic">interface-signal</title>
+  </info>
+  <title>Regress.TestInterface::interface-signal</title>
+  <synopsis><code mime="text/x-python">
+def callback(test_interface, ptr, user_param1, ...)
+  </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>test_interface</code></title>
+<p>instance of <link xref="Regress.TestInterface"/> that is emitting the signal</p>
+</item>
+<item>
+<title><code>ptr</code></title>
+  <p>the code must look up the signal with
+  g_interface_info_find_signal() in order to get this to work.</p>
+</item>
+<title><code>user_param1</code></title>
+<p>first user parameter (if any) specified with the connect() method</p>
+<item>
+<title><code>...</code></title>
+<p>additional user parameters (if any)</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface.emit_signal.page 
b/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface.emit_signal.page
new file mode 100644
index 00000000..72d5b6df
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestInterface.emit_signal.page
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<page id="Regress.TestInterface.emit_signal"
+      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.TestInterface" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>none</api:type>
+      </api:returns>
+      <api:name>regress_test_interface_emit_signal</api:name>
+      <api:arg>
+        <api:type>Regress.TestInterface</api:type>
+        <api:name>self</api:name>
+      </api:arg>
+    </api:function>
+  </info>
+  <title>Regress.TestInterface.emit_signal</title>
+  <synopsis><code mime="text/x-python">
+@accepts(Regress.TestInterface)
+@returns(none)
+def emit_signal(self):
+    # Python wrapper for regress_test_interface_emit_signal()
+  </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>self</code></title>
+  <p>the object to emit the signal</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj-sig-with-inout-int.page 
b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj-sig-with-inout-int.page
new file mode 100644
index 00000000..7547a263
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj-sig-with-inout-int.page
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj-sig-with-inout-int"
+      type="topic"
+      style="signal"
+      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.TestObj" group="signal" type="guide"/>
+    <title type="link" role="topic">sig-with-inout-int</title>
+  </info>
+  <title>Regress.TestObj::sig-with-inout-int</title>
+  <synopsis><code mime="text/x-python">
+def callback(test_obj, position, user_param1, ...)
+  </code></synopsis>
+  <p>This signal is modeled after GtkEditable::insert-text.</p>
+
+<terms>
+<item>
+<title><code>test_obj</code></title>
+<p>instance of <link xref="Regress.TestObj"/> that is emitting the signal</p>
+</item>
+<item>
+<title><code>position</code></title>
+  <p>The position, in characters, at which to
+    insert the new text. This is an in-out paramter. After the signal
+    emission is finished, it should point after the newly inserted text.</p>
+</item>
+<title><code>user_param1</code></title>
+<p>first user parameter (if any) specified with the connect() method</p>
+<item>
+<title><code>...</code></title>
+<p>additional user parameters (if any)</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.emit_sig_with_inout_int.page 
b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.emit_sig_with_inout_int.page
new file mode 100644
index 00000000..f2ae2707
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.emit_sig_with_inout_int.page
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj.emit_sig_with_inout_int"
+      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.TestObj" group="method" type="guide"/>
+    <api:function>
+      <api:returns>
+        <api:type>none</api:type>
+      </api:returns>
+      <api:name>regress_test_obj_emit_sig_with_inout_int</api:name>
+      <api:arg>
+        <api:type>Regress.TestObj</api:type>
+        <api:name>self</api:name>
+      </api:arg>
+    </api:function>
+  </info>
+  <title>Regress.TestObj.emit_sig_with_inout_int</title>
+  <synopsis><code mime="text/x-python">
+@accepts(Regress.TestObj)
+@returns(none)
+def emit_sig_with_inout_int(self):
+    # Python wrapper for regress_test_obj_emit_sig_with_inout_int()
+  </code></synopsis>
+  <p>The signal handler must increment the inout parameter by 1.</p>
+
+<terms>
+<item>
+<title><code>self</code></title>
+  <p>The object to emit the signal.</p>
+</item>
+</terms>
+
+</page>
diff --git a/tests/scanner/Regress-1.0-sections-expected.txt b/tests/scanner/Regress-1.0-sections-expected.txt
index a9abd20f..b7aa62f2 100644
--- a/tests/scanner/Regress-1.0-sections-expected.txt
+++ b/tests/scanner/Regress-1.0-sections-expected.txt
@@ -331,6 +331,7 @@ regress_test_inherit_drawable_get_size
 <TITLE>RegressTestInterface</TITLE>
 RegressTestInterface
 RegressTestInterfaceIface
+regress_test_interface_emit_signal
 
 <SECTION>
 <FILE>regress-test-obj</FILE>
@@ -340,6 +341,7 @@ RegressTestObjClass
 regress_test_obj_do_matrix
 regress_test_obj_emit_sig_with_array_len_prop
 regress_test_obj_emit_sig_with_foreign_struct
+regress_test_obj_emit_sig_with_inout_int
 regress_test_obj_emit_sig_with_int64
 regress_test_obj_emit_sig_with_obj
 regress_test_obj_emit_sig_with_uint64


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]