diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2012-07-04 11:58:13 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2012-11-28 21:31:23 +0100 |
commit | af2e146f5f24b93322ad0112d37a8e41222c3085 (patch) | |
tree | aa0e94914de51582e19ec7566cd5b40c88475e87 /tests/scanner/annotationparser/gi/syntax.xml | |
parent | c9516551d29432270f5f840ef315ce34f654a62f (diff) | |
download | gobject-introspection-af2e146f5f24b93322ad0112d37a8e41222c3085.tar.gz |
giscanner: add AnnotationParser tests
The tests in giscanner/annotationpatters.py only test the regular
expression programs used when parsing GTK-Doc comment blocks but
do not test the structure of the resulting "parse tree".
This patch adds 193 GTK-Doc comment blocks and the expected
results AnnotationParser should return (with it's current level
of understanding of GTK-Doc comment block syntax). These are
compared by tests/scanner/annotationparser/test_parser.py which
complains with a diff on failure.
https://bugzilla.gnome.org/show_bug.cgi?id=688897
Diffstat (limited to 'tests/scanner/annotationparser/gi/syntax.xml')
-rw-r--r-- | tests/scanner/annotationparser/gi/syntax.xml | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/tests/scanner/annotationparser/gi/syntax.xml b/tests/scanner/annotationparser/gi/syntax.xml new file mode 100644 index 00000000..67224de5 --- /dev/null +++ b/tests/scanner/annotationparser/gi/syntax.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<tests> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>//Test</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>// Test</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/*Test*/</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* Test */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* Test +something */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/* +Test +something */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/**Test*/</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/** Test */</commentblock> +</test> + +<test> + <!-- + Not GTK-Doc + --> + <commentblock>/** Test +something */</commentblock> +</test> + +<test> + <!-- + Broken comment block, signal the start of the comment block description followed + by a parameter instead. + --> + <commentblock>/** + * SECTION:meepapp + * + * @short_description: the application class + * + * The application class handles ... + */</commentblock> + <docblock> + <identifier> + <name>SECTION:meepapp</name> + </identifier> + <parameters> + <parameter> + <name>short_description</name> + <description>the application class</description> + </parameter> + </parameters> + <description>The application class handles ...</description> + </docblock> +</test> + +</tests> |