diff options
Diffstat (limited to 'tests/scanner/annotationparser/gi/annotation_value.xml')
-rw-r--r-- | tests/scanner/annotationparser/gi/annotation_value.xml | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/annotation_value.xml b/tests/scanner/annotationparser/gi/annotation_value.xml new file mode 100644 index 00000000..7d72ef71 --- /dev/null +++ b/tests/scanner/annotationparser/gi/annotation_value.xml @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<tests xmlns="http://schemas.gnome.org/gobject-introspection/2013/test"> + +<test> + <input>/** + * ANNOTATION_CALCULATED_LARGE: (value 10000000000UL) + * + * Constant to define a calculated large value + */</input> + <parser> + <docblock> + <identifier> + <name>ANNOTATION_CALCULATED_LARGE</name> + <annotations> + <annotation> + <name>value</name> + <options> + <option> + <name>10000000000UL</name> + </option> + </options> + </annotation> + </annotations> + </identifier> + <description>Constant to define a calculated large value</description> + </docblock> + </parser> + <output>/** + * ANNOTATION_CALCULATED_LARGE: (value 10000000000UL) + * + * Constant to define a calculated large value + */</output> +</test> + +<test> + <!-- + Deprecated "Value:" tag syntax + --> + <input>/** + * ANNOTATION_CALCULATED_LARGE: + * + * Constant to define a calculated large value + * + * Value: 10000000000UL + */</input> + <parser> + <docblock> + <identifier> + <name>ANNOTATION_CALCULATED_LARGE</name> + <annotations> + <annotation> + <name>value</name> + <options> + <option> + <name>10000000000UL</name> + </option> + </options> + </annotation> + </annotations> + </identifier> + <description>Constant to define a calculated large value</description> + </docblock> + <messages> + <message>6: Warning: Test: GObject-Introspection specific GTK-Doc tag "Value" has been deprecated, please use annotations on the identifier instead: + * Value: 10000000000UL + ^</message> + </messages> + </parser> + <output>/** + * ANNOTATION_CALCULATED_LARGE: (value 10000000000UL) + * + * Constant to define a calculated large value + */</output> +</test> + +<test> + <!-- + Deprecated "Value:" tag syntax in the wrong location + --> + <input>/** + * ANNOTATION_CALCULATED_LARGE: + * + * Value: 10000000000UL + * + * Constant to define a calculated large value + */</input> + <parser> + <docblock> + <identifier> + <name>ANNOTATION_CALCULATED_LARGE</name> + <annotations> + <annotation> + <name>value</name> + <options> + <option> + <name>10000000000UL</name> + </option> + </options> + </annotation> + </annotations> + </identifier> + <description>Constant to define a calculated large value</description> + </docblock> + <messages> + <message>4: Warning: Test: GObject-Introspection specific GTK-Doc tag "Value" has been deprecated, please use annotations on the identifier instead: + * Value: 10000000000UL + ^</message> + </messages> + </parser> + <output>/** + * ANNOTATION_CALCULATED_LARGE: (value 10000000000UL) + * + * Constant to define a calculated large value + */</output> +</test> + +</tests> |