diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-08-13 15:01:00 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-10-08 20:56:39 +0200 |
commit | 4b690b187bf8d0b7b571faaa050986b796e797a4 (patch) | |
tree | 05cfc910d4c9e276aa93255d4e4812b897dd25e3 /tests/scanner/annotationparser/gi/annotation_destroy.xml | |
parent | 0af20939c8e2deaf1d1f06e069594d53acf65d2f (diff) | |
download | gobject-introspection-4b690b187bf8d0b7b571faaa050986b796e797a4.tar.gz |
giscanner: add missing tests
Diffstat (limited to 'tests/scanner/annotationparser/gi/annotation_destroy.xml')
-rw-r--r-- | tests/scanner/annotationparser/gi/annotation_destroy.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/annotation_destroy.xml b/tests/scanner/annotationparser/gi/annotation_destroy.xml index 9fd8a26b..bb81220b 100644 --- a/tests/scanner/annotationparser/gi/annotation_destroy.xml +++ b/tests/scanner/annotationparser/gi/annotation_destroy.xml @@ -45,4 +45,52 @@ detection, and fixing it via annotations.</description> </parser> </test> +<test> + <input>/** + * annotation_custom_destroy: + * @callback: (destroy destroy=invalid) (closure data): Destroy notification + * + * Test messing up the heuristic of closure/destroy-notification + * detection, and fixing it via annotations. + */</input> + <parser> + <docblock> + <identifier> + <name>annotation_custom_destroy</name> + </identifier> + <parameters> + <parameter> + <name>callback</name> + <annotations> + <annotation> + <name>destroy</name> + <options> + <option> + <name>destroy=invalid</name> + </option> + </options> + </annotation> + <annotation> + <name>closure</name> + <options> + <option> + <name>data</name> + </option> + </options> + </annotation> + </annotations> + <description>Destroy notification</description> + </parameter> + </parameters> + <description>Test messing up the heuristic of closure/destroy-notification +detection, and fixing it via annotations.</description> + </docblock> + <messages> + <message>3: Warning: Test: invalid annotation options: expected a "list" but received "key=value pairs": + * @callback: (destroy destroy=invalid) (closure data): Destroy notification + ^</message> + </messages> + </parser> +</test> + </tests> |