giscanner: add AnnotationParser tests
[platform/upstream/gobject-introspection.git] / tests / scanner / annotationparser / gi / annotation_type.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <tests>
4
5 <test>
6   <commentblock>/**
7  * AnnotationObject::list-signal:
8  * @annotation: the annotation object
9  * @list: (type GLib.List) (element-type utf8) (transfer container): a list of strings
10  *
11  * This is a signal which takes a list of strings, but it's not
12  * known by GObject as it's only marked as G_TYPE_POINTER
13  */</commentblock>
14   <docblock>
15     <identifier>
16       <name>AnnotationObject::list-signal</name>
17     </identifier>
18     <parameters>
19       <parameter>
20         <name>annotation</name>
21         <description>the annotation object</description>
22       </parameter>
23       <parameter>
24         <name>list</name>
25         <annotations>
26           <annotation>
27             <name>type</name>
28             <options>
29               <option>
30                 <name>GLib.List</name>
31               </option>
32             </options>
33           </annotation>
34           <annotation>
35             <name>element-type</name>
36             <options>
37               <option>
38                 <name>utf8</name>
39               </option>
40             </options>
41           </annotation>
42           <annotation>
43             <name>transfer</name>
44             <options>
45               <option>
46                 <name>container</name>
47               </option>
48             </options>
49           </annotation>
50         </annotations>
51         <description>a list of strings</description>
52       </parameter>
53     </parameters>
54     <description>This is a signal which takes a list of strings, but it's not
55 known by GObject as it's only marked as G_TYPE_POINTER</description>
56   </docblock>
57 </test>
58
59 <test>
60   <!--
61   "Type:" tag syntax
62   -->
63   <commentblock>/**
64    * RegressTestObj:hash-table:
65    *
66    * Test.
67    *
68    * Type: GLib.HashTable(utf8,gint8)
69    */</commentblock>
70   <docblock>
71     <identifier>
72       <name>RegressTestObj:hash-table</name>
73     </identifier>
74     <description>Test.</description>
75     <tags>
76       <tag>
77         <name>type</name>
78         <description>GLib.HashTable(utf8,gint8)</description>
79       </tag>
80     </tags>
81   </docblock>
82 </test>
83
84 </tests>