[gobject-introspection] Fix tests



commit 9e21e287deb34be3a3e2a6d3d1f96e9e71a00c18
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 29 14:00:31 2010 -0400

    Fix tests

 tests/scanner/Annotation-1.0-expected.gir |    8 ++++++++
 tests/scanner/annotation.c                |    4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/tests/scanner/Annotation-1.0-expected.gir b/tests/scanner/Annotation-1.0-expected.gir
index f922d58..050d888 100644
--- a/tests/scanner/Annotation-1.0-expected.gir
+++ b/tests/scanner/Annotation-1.0-expected.gir
@@ -778,6 +778,14 @@ detection, and fixing it via annotations.</doc>
         </parameter>
       </parameters>
     </function>
+    <function name="test_parsing_bug630862"
+              c:identifier="annotation_test_parsing_bug630862">
+      <doc xml:whitespace="preserve">See https://bugzilla.gnome.org/show_bug.cgi?id=630862</doc>
+      <return-value transfer-ownership="none">
+        <doc xml:whitespace="preserve">An object, note the colon:in here</doc>
+        <type name="GObject.Object" c:type="GObject*"/>
+      </return-value>
+    </function>
     <function name="versioned"
               c:identifier="annotation_versioned"
               version="0.6">
diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c
index 9fa422c..280a9e5 100644
--- a/tests/scanner/annotation.c
+++ b/tests/scanner/annotation.c
@@ -89,7 +89,7 @@ annotation_object_class_init (AnnotationObjectClass *klass)
   /**
    * AnnotationObject::list-signal:
    * @annotation: the annotation object
-   * @list: (type GLib.List) (element-type utf8): (transfer container): a list of strings
+   * @list: (type GLib.List) (element-type utf8) (transfer container): a list of strings
    *
    * This is a signal which takes a list of strings, but it's not
    * known by GObject as it's only marked as G_TYPE_POINTER
@@ -210,7 +210,7 @@ annotation_object_out (AnnotationObject *object, int *outarg)
  *
  * This is a test for in arguments
  *
- * @inarg: (in): (transfer none): This is an argument test
+ * @inarg: (in) (transfer none): This is an argument test
  * Return value: an int
  */
 gint



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