summaryrefslogtreecommitdiff
path: root/tests/scanner/annotationparser/gi/parameter.xml
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-07-23 17:34:07 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:56:43 +0200
commit6a874b86a1b9aae0c50a30b8cd3033870797eb1c (patch)
tree03831e4e2c597381e1d6da2a8a7ea4d5fc4bf28a /tests/scanner/annotationparser/gi/parameter.xml
parent4b690b187bf8d0b7b571faaa050986b796e797a4 (diff)
downloadgobject-introspection-6a874b86a1b9aae0c50a30b8cd3033870797eb1c.tar.gz
giscanner: refactor GTK-Doc comment block serialization
Diffstat (limited to 'tests/scanner/annotationparser/gi/parameter.xml')
-rw-r--r--tests/scanner/annotationparser/gi/parameter.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/parameter.xml b/tests/scanner/annotationparser/gi/parameter.xml
index fcf9ee42..43f97b3f 100644
--- a/tests/scanner/annotationparser/gi/parameter.xml
+++ b/tests/scanner/annotationparser/gi/parameter.xml
@@ -33,6 +33,12 @@
^</message>
</messages>
</parser>
+ <output>/**
+ * test_parameter_missing_colon:
+ * @param1: (allow-none): first parameter
+ *
+ * Forgotten colon above will result in a warning.
+ */</output>
</test>
<test>
@@ -72,6 +78,14 @@
^</message>
</messages>
</parser>
+ <output>/**
+ * test_unexpected_parameter:
+ * @param1: first parameter
+ *
+ * Parameters should go before the comment block description.
+ *
+ * Returns: something
+ */</output>
</test>
<test>
@@ -98,6 +112,10 @@
^</message>
</messages>
</parser>
+ <output>/**
+ * test_multiple_parameters:
+ * @param1: first parameter again
+ */</output>
</test>
<test>
@@ -133,6 +151,13 @@
^</message>
</messages>
</parser>
+ <output>/**
+ * test_multiline_annotations_on_parameter:
+ * @param1: (allow-none):
+ * (transfer full): first parameter
+ *
+ * Annotations spanning multiple lines are not valid
+ */</output>
</test>
<test>
@@ -163,6 +188,13 @@
<description>Annotations spanning multiple lines are not valid</description>
</docblock>
</parser>
+ <output>/**
+ * test_multiline_annotations_on_parameter:
+ * @param1: (allow-none): first parameter having a second line which looks
+ * (like an annotation), but isn't. This should not result in a warning.
+ *
+ * Annotations spanning multiple lines are not valid
+ */</output>
</test>
<test>
@@ -199,6 +231,14 @@
^</message>
</messages>
</parser>
+ <output>/**
+ * anjuta_async_notify_get_error:
+ * @self: An #AnjutaAsyncNotify object
+ * @error: Return location for the error set by the called interface to which
+ * this object was passed. If no error is set, @error is set to NULL.
+ *
+ * Gets the error set on @self.
+ */</output>
</test>
<test>
@@ -253,6 +293,24 @@ after #GtkPrintOperation::done was emitted.</description>
</tags>
</docblock>
</parser>
+ <output> /**
+ * GtkPrintOperation::done:
+ * @operation: the #GtkPrintOperation on which the signal was emitted
+ * @result: the result of the print operation
+ *
+ * Emitted when the print operation run has finished doing
+ * everything required for printing.
+ *
+ * @result gives you information about what happened during the run.
+ * If @result is %GTK_PRINT_OPERATION_RESULT_ERROR then you can call
+ * gtk_print_operation_get_error() for more information.
+ *
+ * If you enabled print status tracking then
+ * gtk_print_operation_is_finished() may still return %FALSE
+ * after #GtkPrintOperation::done was emitted.
+ *
+ * Since: 2.10
+ */</output>
</test>
<test>