From af2e146f5f24b93322ad0112d37a8e41222c3085 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 4 Jul 2012 11:58:13 +0200 Subject: 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 --- .../annotationparser/gtkdoc/bugs/tester.c.xml | 765 +++++++++++++++++++++ 1 file changed, 765 insertions(+) create mode 100644 tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml new file mode 100644 index 00000000..f0a2b225 --- /dev/null +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -0,0 +1,765 @@ + + + + + + link containing a # char. + * + * + * more details + * + * Second paragraph inside subsection. + * + * + */]]> + + + SECTION:tester + + + + short_description + module for gtk-doc unit test + + + link containing a # char. + + +more details + +Second paragraph inside subsection. + +]]> + + + + + /** + * bug_141869_a: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=141869 + */ + + + bug_141869_a + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=141869 + + + + + /** + * bug_141869_b: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=141869 + */ + + + bug_141869_b + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=141869 + + + + + /** + * bug_379466: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=379466 + */ + + + bug_379466 + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=379466 + + + + + /** + * bug_380824: + * @arg: arg + * + * Returns a value. + * http://bugzilla.gnome.org/show_bug.cgi?id=380824 + * + * Since: 0.1 + * + * Returns: result + */ + + + bug_380824 + + + + arg + arg + + + Returns a value. +http://bugzilla.gnome.org/show_bug.cgi?id=380824 + + + since + 0.1 + + + returns + result + + + + + + + /** + * bug_411739: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=411739 + * + * Returns: result + */ + + + bug_411739 + + http://bugzilla.gnome.org/show_bug.cgi?id=411739 + + + returns + result + + + + + + + /** + * bug_419997: + * @const_values: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=419997 + */ + + + bug_419997 + + + + const_values + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=419997 + + + + + /** + * bug_445693: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=445693 + */ + + + bug_445693 + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=445693 + + + + + /** + * bug_471014: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=471014 + * + * Returns: result + */ + + + bug_471014 + + http://bugzilla.gnome.org/show_bug.cgi?id=471014 + + + returns + result + + + + + + + /** + * Bug446648: + * @BUG_446648_FOO: foo + * + * http://bugzilla.gnome.org/show_bug.cgi?id=446648 + **/ + + + Bug446648 + + + + BUG_446648_FOO + foo + + + http://bugzilla.gnome.org/show_bug.cgi?id=446648 + + + + + /** + * bug_552602: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=552602 + * + * Returns: result + */ + + + bug_552602 + + http://bugzilla.gnome.org/show_bug.cgi?id=552602 + + + returns + result + + + + + + + /** + * bug_574654a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=574654 + * + * Returns: result + */ + + + bug_574654a + + http://bugzilla.gnome.org/show_bug.cgi?id=574654 + + + returns + result + + + + + + + /** + * bug_574654b: + * @offset: skip this many items + * + * http://bugzilla.gnome.org/show_bug.cgi?id=574654 + */ + + + bug_574654b + + + + offset + skip this many items + + + http://bugzilla.gnome.org/show_bug.cgi?id=574654 + + + + + /** + * bug_580300a_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ + + + bug_580300a_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + + + + /** + * bug_580300b_get_type: + * @a: value + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ + + + bug_580300b_get_type + + + + a + value + + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + + + + /** + * bug_580300c_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ + + + bug_580300c_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + + + + /** + * bug_580300d_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + * + * Returns: result + */ + + + bug_580300d_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + + returns + result + + + + + + + /** + * bug_597937: + * @function_arg: value + * + * http://bugzilla.gnome.org/show_bug.cgi?id=597937 + */ + + + bug_597937 + + + + function_arg + value + + + http://bugzilla.gnome.org/show_bug.cgi?id=597937 + + + + + /** + * bug_602518a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ + + + bug_602518a + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + + + + /** + * bug_602518b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ + + + bug_602518b + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + + + + /** + * bug_602518c: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ + + + bug_602518c + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + + + + /** + * bug_607445: + * @a: parameter + * @n: parameter + * + * http://bugzilla.gnome.org/show_bug.cgi?id=607445 + */ + + + bug_607445 + + + + a + parameter + + + n + parameter + + + http://bugzilla.gnome.org/show_bug.cgi?id=607445 + + + + + /** + * bug_610257: + * @der: parameter + * @len: parameter + * + * http://bugzilla.gnome.org/show_bug.cgi?id=610257 + */ + + + bug_610257 + + + + der + parameter + + + len + parameter + + + http://bugzilla.gnome.org/show_bug.cgi?id=610257 + + + + + test + * + * subsect + * test + * + **/]]> + + + bug_623968a + + test + + subsect + test +]]> + + + + + + * subsect + * test + * + **/]]> + + + bug_623968b + + + subsect + test +]]> + + + + + test + **/]]> + + + bug_623968c + + test]]> + + + + + /** + * bug_624200a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624200 + * + * Returns: result + */ + + + bug_624200a + + http://bugzilla.gnome.org/show_bug.cgi?id=624200 + + + returns + result + + + + + + + /** + * bug_624200b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624200 + * + * Returns: result + */ + + + bug_624200b + + http://bugzilla.gnome.org/show_bug.cgi?id=624200 + + + returns + result + + + + + + + /** + * bug_638330: + * @arg1: arg1 + * @data: data + * @length: length + * + * http://bugzilla.gnome.org/show_bug.cgi?id=638330 + */ + + + bug_638330 + + + + arg1 + arg1 + + + data + data + + + length + length + + + http://bugzilla.gnome.org/show_bug.cgi?id=638330 + + + + + /** + * bug_000000_va1: + * @name: a name + * @...: A printf-style message to output + * + * Outputs a message. + */ + + + bug_000000_va1 + + + + name + a name + + + ... + A printf-style message to output + + + Outputs a message. + + + + + /** + * bug_624001a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ + + + bug_624001a + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + + + + /** + * bug_624001b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ + + + bug_624001b + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + + + + /** + * bug_624001c: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ + + + bug_624001c + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + + + + /** + * bug_624001d: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ + + + bug_624001d + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + + + + /** + * bug_624001e: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ + + + bug_624001e + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + + + -- cgit v1.2.1 From 146a56f7f358dc14989e198fee4c2dd01b55be07 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 15 May 2013 14:42:09 +0200 Subject: tests: rename element to We'll start testing parser warning/error messages and serialized output later on so this will make it easier to see what's parser input and output... --- .../annotationparser/gtkdoc/bugs/tester.c.xml | 140 ++++++++++----------- 1 file changed, 70 insertions(+), 70 deletions(-) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index f0a2b225..250b1626 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -3,7 +3,7 @@ - * - */]]> + */]]> SECTION:tester @@ -50,12 +50,12 @@ Second paragraph inside subsection. - /** + /** * bug_141869_a: * @pid: arg * * http://bugzilla.gnome.org/show_bug.cgi?id=141869 - */ + */ bug_141869_a @@ -71,12 +71,12 @@ Second paragraph inside subsection. - /** + /** * bug_141869_b: * @pid: arg * * http://bugzilla.gnome.org/show_bug.cgi?id=141869 - */ + */ bug_141869_b @@ -92,12 +92,12 @@ Second paragraph inside subsection. - /** + /** * bug_379466: * @pid: arg * * http://bugzilla.gnome.org/show_bug.cgi?id=379466 - */ + */ bug_379466 @@ -113,7 +113,7 @@ Second paragraph inside subsection. - /** + /** * bug_380824: * @arg: arg * @@ -123,7 +123,7 @@ Second paragraph inside subsection. * Since: 0.1 * * Returns: result - */ + */ bug_380824 @@ -150,13 +150,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_411739: * * http://bugzilla.gnome.org/show_bug.cgi?id=411739 * * Returns: result - */ + */ bug_411739 @@ -172,12 +172,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_419997: * @const_values: arg * * http://bugzilla.gnome.org/show_bug.cgi?id=419997 - */ + */ bug_419997 @@ -193,12 +193,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_445693: * @pid: arg * * http://bugzilla.gnome.org/show_bug.cgi?id=445693 - */ + */ bug_445693 @@ -214,13 +214,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_471014: * * http://bugzilla.gnome.org/show_bug.cgi?id=471014 * * Returns: result - */ + */ bug_471014 @@ -236,12 +236,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * Bug446648: * @BUG_446648_FOO: foo * * http://bugzilla.gnome.org/show_bug.cgi?id=446648 - **/ + **/ Bug446648 @@ -257,13 +257,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_552602: * * http://bugzilla.gnome.org/show_bug.cgi?id=552602 * * Returns: result - */ + */ bug_552602 @@ -279,13 +279,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_574654a: * * http://bugzilla.gnome.org/show_bug.cgi?id=574654 * * Returns: result - */ + */ bug_574654a @@ -301,12 +301,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_574654b: * @offset: skip this many items * * http://bugzilla.gnome.org/show_bug.cgi?id=574654 - */ + */ bug_574654b @@ -322,11 +322,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_580300a_get_type: * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 - */ + */ bug_580300a_get_type @@ -336,12 +336,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_580300b_get_type: * @a: value * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 - */ + */ bug_580300b_get_type @@ -357,11 +357,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_580300c_get_type: * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 - */ + */ bug_580300c_get_type @@ -371,13 +371,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_580300d_get_type: * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 * * Returns: result - */ + */ bug_580300d_get_type @@ -393,12 +393,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_597937: * @function_arg: value * * http://bugzilla.gnome.org/show_bug.cgi?id=597937 - */ + */ bug_597937 @@ -414,13 +414,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_602518a: * * http://bugzilla.gnome.org/show_bug.cgi?id=602518 * * Returns: result - */ + */ bug_602518a @@ -436,13 +436,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_602518b: * * http://bugzilla.gnome.org/show_bug.cgi?id=602518 * * Returns: result - */ + */ bug_602518b @@ -458,13 +458,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_602518c: * * http://bugzilla.gnome.org/show_bug.cgi?id=602518 * * Returns: result - */ + */ bug_602518c @@ -480,13 +480,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_607445: * @a: parameter * @n: parameter * * http://bugzilla.gnome.org/show_bug.cgi?id=607445 - */ + */ bug_607445 @@ -506,13 +506,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_610257: * @der: parameter * @len: parameter * * http://bugzilla.gnome.org/show_bug.cgi?id=610257 - */ + */ bug_610257 @@ -532,7 +532,7 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - test @@ -540,7 +540,7 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * subsect * test * - **/]]> + **/]]> bug_623968a @@ -554,7 +554,7 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - * subsect * test * - **/]]> + **/]]> bug_623968b @@ -578,11 +578,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - test - **/]]> + **/]]> bug_623968c @@ -592,13 +592,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624200a: * * http://bugzilla.gnome.org/show_bug.cgi?id=624200 * * Returns: result - */ + */ bug_624200a @@ -614,13 +614,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624200b: * * http://bugzilla.gnome.org/show_bug.cgi?id=624200 * * Returns: result - */ + */ bug_624200b @@ -636,14 +636,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_638330: * @arg1: arg1 * @data: data * @length: length * * http://bugzilla.gnome.org/show_bug.cgi?id=638330 - */ + */ bug_638330 @@ -667,13 +667,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_000000_va1: * @name: a name * @...: A printf-style message to output * * Outputs a message. - */ + */ bug_000000_va1 @@ -693,11 +693,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624001a: * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 - */ + */ bug_624001a @@ -707,11 +707,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624001b: * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 - */ + */ bug_624001b @@ -721,11 +721,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624001c: * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 - */ + */ bug_624001c @@ -735,11 +735,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624001d: * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 - */ + */ bug_624001d @@ -749,11 +749,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 - /** + /** * bug_624001e: * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 - */ + */ bug_624001e -- cgit v1.2.1 From 1359fb6d7a76609ec07e22af9cd79ae604d23d20 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 15 May 2013 17:31:14 +0200 Subject: tests: put element inside a element The element can then hold both the expected parse tree and the warning/error messages emitted by the parser in a future child element. --- .../annotationparser/gtkdoc/bugs/tester.c.xml | 850 +++++++++++---------- 1 file changed, 460 insertions(+), 390 deletions(-) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index 250b1626..dd05970b 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -22,17 +22,18 @@ * * */]]> - - - SECTION:tester - - - - short_description - module for gtk-doc unit test - - - + + + SECTION:tester + + + + short_description + module for gtk-doc unit test + + + link containing a # char ]]> - + + @@ -56,18 +58,20 @@ Second paragraph inside subsection. * * http://bugzilla.gnome.org/show_bug.cgi?id=141869 */ - - - bug_141869_a - - - - pid - arg - - - http://bugzilla.gnome.org/show_bug.cgi?id=141869 - + + + + bug_141869_a + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=141869 + + @@ -77,18 +81,20 @@ Second paragraph inside subsection. * * http://bugzilla.gnome.org/show_bug.cgi?id=141869 */ - - - bug_141869_b - - - - pid - arg - - - http://bugzilla.gnome.org/show_bug.cgi?id=141869 - + + + + bug_141869_b + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=141869 + + @@ -98,18 +104,20 @@ Second paragraph inside subsection. * * http://bugzilla.gnome.org/show_bug.cgi?id=379466 */ - - - bug_379466 - - - - pid - arg - - - http://bugzilla.gnome.org/show_bug.cgi?id=379466 - + + + + bug_379466 + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=379466 + + @@ -124,29 +132,31 @@ Second paragraph inside subsection. * * Returns: result */ - - - bug_380824 - - - - arg - arg - - - Returns a value. + + + + bug_380824 + + + + arg + arg + + + Returns a value. http://bugzilla.gnome.org/show_bug.cgi?id=380824 - - - since - 0.1 - - - returns - result - - - + + + since + 0.1 + + + returns + result + + + + @@ -157,18 +167,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_411739 - - http://bugzilla.gnome.org/show_bug.cgi?id=411739 - - - returns - result - - - + + + + bug_411739 + + http://bugzilla.gnome.org/show_bug.cgi?id=411739 + + + returns + result + + + + @@ -178,18 +190,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=419997 */ - - - bug_419997 - - - - const_values - arg - - - http://bugzilla.gnome.org/show_bug.cgi?id=419997 - + + + + bug_419997 + + + + const_values + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=419997 + + @@ -199,18 +213,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=445693 */ - - - bug_445693 - - - - pid - arg - - - http://bugzilla.gnome.org/show_bug.cgi?id=445693 - + + + + bug_445693 + + + + pid + arg + + + http://bugzilla.gnome.org/show_bug.cgi?id=445693 + + @@ -221,18 +237,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_471014 - - http://bugzilla.gnome.org/show_bug.cgi?id=471014 - - - returns - result - - - + + + + bug_471014 + + http://bugzilla.gnome.org/show_bug.cgi?id=471014 + + + returns + result + + + + @@ -242,18 +260,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=446648 **/ - - - Bug446648 - - - - BUG_446648_FOO - foo - - - http://bugzilla.gnome.org/show_bug.cgi?id=446648 - + + + + Bug446648 + + + + BUG_446648_FOO + foo + + + http://bugzilla.gnome.org/show_bug.cgi?id=446648 + + @@ -264,18 +284,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_552602 - - http://bugzilla.gnome.org/show_bug.cgi?id=552602 - - - returns - result - - - + + + + bug_552602 + + http://bugzilla.gnome.org/show_bug.cgi?id=552602 + + + returns + result + + + + @@ -286,18 +308,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_574654a - - http://bugzilla.gnome.org/show_bug.cgi?id=574654 - - - returns - result - - - + + + + bug_574654a + + http://bugzilla.gnome.org/show_bug.cgi?id=574654 + + + returns + result + + + + @@ -307,18 +331,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=574654 */ - - - bug_574654b - - - - offset - skip this many items - - - http://bugzilla.gnome.org/show_bug.cgi?id=574654 - + + + + bug_574654b + + + + offset + skip this many items + + + http://bugzilla.gnome.org/show_bug.cgi?id=574654 + + @@ -327,12 +353,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 */ - - - bug_580300a_get_type - - http://bugzilla.gnome.org/show_bug.cgi?id=580300 - + + + + bug_580300a_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + @@ -342,18 +370,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 */ - - - bug_580300b_get_type - - - - a - value - - - http://bugzilla.gnome.org/show_bug.cgi?id=580300 - + + + + bug_580300b_get_type + + + + a + value + + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + @@ -362,12 +392,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=580300 */ - - - bug_580300c_get_type - - http://bugzilla.gnome.org/show_bug.cgi?id=580300 - + + + + bug_580300c_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + @@ -378,18 +410,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_580300d_get_type - - http://bugzilla.gnome.org/show_bug.cgi?id=580300 - - - returns - result - - - + + + + bug_580300d_get_type + + http://bugzilla.gnome.org/show_bug.cgi?id=580300 + + + returns + result + + + + @@ -399,18 +433,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=597937 */ - - - bug_597937 - - - - function_arg - value - - - http://bugzilla.gnome.org/show_bug.cgi?id=597937 - + + + + bug_597937 + + + + function_arg + value + + + http://bugzilla.gnome.org/show_bug.cgi?id=597937 + + @@ -421,18 +457,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_602518a - - http://bugzilla.gnome.org/show_bug.cgi?id=602518 - - - returns - result - - - + + + + bug_602518a + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + @@ -443,18 +481,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_602518b - - http://bugzilla.gnome.org/show_bug.cgi?id=602518 - - - returns - result - - - + + + + bug_602518b + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + @@ -465,18 +505,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_602518c - - http://bugzilla.gnome.org/show_bug.cgi?id=602518 - - - returns - result - - - + + + + bug_602518c + + http://bugzilla.gnome.org/show_bug.cgi?id=602518 + + + returns + result + + + + @@ -487,22 +529,24 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=607445 */ - - - bug_607445 - - - - a - parameter - - - n - parameter - - - http://bugzilla.gnome.org/show_bug.cgi?id=607445 - + + + + bug_607445 + + + + a + parameter + + + n + parameter + + + http://bugzilla.gnome.org/show_bug.cgi?id=607445 + + @@ -513,22 +557,24 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=610257 */ - - - bug_610257 - - - - der - parameter - - - len - parameter - - - http://bugzilla.gnome.org/show_bug.cgi?id=610257 - + + + + bug_610257 + + + + der + parameter + + + len + parameter + + + http://bugzilla.gnome.org/show_bug.cgi?id=610257 + + @@ -541,16 +587,18 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * test * **/]]> - - - bug_623968a - - test + + + + bug_623968a + + test subsect test ]]> - + + @@ -564,17 +612,19 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * test * **/]]> - - - bug_623968b - - + + + bug_623968b + + subsect test ]]> - + + @@ -583,12 +633,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * test **/]]> - - - bug_623968c - - test]]> - + + + + bug_623968c + + test]]> + + @@ -599,18 +651,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_624200a - - http://bugzilla.gnome.org/show_bug.cgi?id=624200 - - - returns - result - - - + + + + bug_624200a + + http://bugzilla.gnome.org/show_bug.cgi?id=624200 + + + returns + result + + + + @@ -621,18 +675,20 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Returns: result */ - - - bug_624200b - - http://bugzilla.gnome.org/show_bug.cgi?id=624200 - - - returns - result - - - + + + + bug_624200b + + http://bugzilla.gnome.org/show_bug.cgi?id=624200 + + + returns + result + + + + @@ -644,26 +700,28 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=638330 */ - - - bug_638330 - - - - arg1 - arg1 - - - data - data - - - length - length - - - http://bugzilla.gnome.org/show_bug.cgi?id=638330 - + + + + bug_638330 + + + + arg1 + arg1 + + + data + data + + + length + length + + + http://bugzilla.gnome.org/show_bug.cgi?id=638330 + + @@ -674,22 +732,24 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * Outputs a message. */ - - - bug_000000_va1 - - - - name - a name - - - ... - A printf-style message to output - - - Outputs a message. - + + + + bug_000000_va1 + + + + name + a name + + + ... + A printf-style message to output + + + Outputs a message. + + @@ -698,12 +758,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 */ - - - bug_624001a - - http://bugzilla.gnome.org/show_bug.cgi?id=624001 - + + + + bug_624001a + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + @@ -712,12 +774,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 */ - - - bug_624001b - - http://bugzilla.gnome.org/show_bug.cgi?id=624001 - + + + + bug_624001b + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + @@ -726,12 +790,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 */ - - - bug_624001c - - http://bugzilla.gnome.org/show_bug.cgi?id=624001 - + + + + bug_624001c + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + @@ -740,12 +806,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 */ - - - bug_624001d - - http://bugzilla.gnome.org/show_bug.cgi?id=624001 - + + + + bug_624001d + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + @@ -754,12 +822,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 * * http://bugzilla.gnome.org/show_bug.cgi?id=624001 */ - - - bug_624001e - - http://bugzilla.gnome.org/show_bug.cgi?id=624001 - + + + + bug_624001e + + http://bugzilla.gnome.org/show_bug.cgi?id=624001 + + -- cgit v1.2.1 From d464fb1f18173fea1aa3028cf44002944419b6ee Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 22 May 2013 07:39:32 +0200 Subject: tests: validate GTK-Doc test files This is more of a handy developer tool than something that is always expected to be executed as part of the test suite, so we don't add a hard dependency on xmllint. https://bugzilla.gnome.org/show_bug.cgi?id=688897 --- tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index dd05970b..b8aea1ac 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -1,6 +1,6 @@ - + Date: Thu, 25 Jul 2013 17:22:21 +0200 Subject: giscanner: extract tag values --- tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index b8aea1ac..1197c9b7 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -148,7 +148,7 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 since - 0.1 + 0.1 returns -- cgit v1.2.1 From 6a874b86a1b9aae0c50a30b8cd3033870797eb1c Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Tue, 23 Jul 2013 17:34:07 +0200 Subject: giscanner: refactor GTK-Doc comment block serialization --- .../annotationparser/gtkdoc/bugs/tester.c.xml | 241 +++++++++++++++++++++ 1 file changed, 241 insertions(+) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index 1197c9b7..7d766c68 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -49,6 +49,25 @@ Second paragraph inside subsection. ]]> + link containing a # char. + * + * + * more details + * + * Second paragraph inside subsection. + * + * + */]]> @@ -72,6 +91,12 @@ Second paragraph inside subsection. http://bugzilla.gnome.org/show_bug.cgi?id=141869 + /** + * bug_141869_a: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=141869 + */ @@ -95,6 +120,12 @@ Second paragraph inside subsection. http://bugzilla.gnome.org/show_bug.cgi?id=141869 + /** + * bug_141869_b: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=141869 + */ @@ -118,6 +149,12 @@ Second paragraph inside subsection. http://bugzilla.gnome.org/show_bug.cgi?id=379466 + /** + * bug_379466: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=379466 + */ @@ -157,6 +194,16 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_380824: + * @arg: arg + * + * Returns a value. + * http://bugzilla.gnome.org/show_bug.cgi?id=380824 + * + * Since: 0.1 + * Returns: result + */ @@ -181,6 +228,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_411739: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=411739 + * + * Returns: result + */ @@ -204,6 +258,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=419997 + /** + * bug_419997: + * @const_values: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=419997 + */ @@ -227,6 +287,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=445693 + /** + * bug_445693: + * @pid: arg + * + * http://bugzilla.gnome.org/show_bug.cgi?id=445693 + */ @@ -251,6 +317,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_471014: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=471014 + * + * Returns: result + */ @@ -274,6 +347,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=446648 + /** + * Bug446648: + * @BUG_446648_FOO: foo + * + * http://bugzilla.gnome.org/show_bug.cgi?id=446648 + */ @@ -298,6 +377,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_552602: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=552602 + * + * Returns: result + */ @@ -322,6 +408,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_574654a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=574654 + * + * Returns: result + */ @@ -345,6 +438,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=574654 + /** + * bug_574654b: + * @offset: skip this many items + * + * http://bugzilla.gnome.org/show_bug.cgi?id=574654 + */ @@ -361,6 +460,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=580300 + /** + * bug_580300a_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ @@ -384,6 +488,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=580300 + /** + * bug_580300b_get_type: + * @a: value + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ @@ -400,6 +510,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=580300 + /** + * bug_580300c_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + */ @@ -424,6 +539,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_580300d_get_type: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=580300 + * + * Returns: result + */ @@ -447,6 +569,12 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=597937 + /** + * bug_597937: + * @function_arg: value + * + * http://bugzilla.gnome.org/show_bug.cgi?id=597937 + */ @@ -471,6 +599,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_602518a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ @@ -495,6 +630,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_602518b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ @@ -519,6 +661,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_602518c: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=602518 + * + * Returns: result + */ @@ -547,6 +696,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=607445 + /** + * bug_607445: + * @a: parameter + * @n: parameter + * + * http://bugzilla.gnome.org/show_bug.cgi?id=607445 + */ @@ -575,6 +731,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=610257 + /** + * bug_610257: + * @der: parameter + * @len: parameter + * + * http://bugzilla.gnome.org/show_bug.cgi?id=610257 + */ @@ -599,6 +762,15 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 ]]> + test + * + * subsect + * test + * + */]]> @@ -625,6 +797,16 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 ]]> + + * subsect + * test + * + */]]> @@ -641,6 +823,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 test]]> + test + */]]> @@ -665,6 +852,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_624200a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624200 + * + * Returns: result + */ @@ -689,6 +883,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 + /** + * bug_624200b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624200 + * + * Returns: result + */ @@ -722,6 +923,14 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=638330 + /** + * bug_638330: + * @arg1: arg1 + * @data: data + * @length: length + * + * http://bugzilla.gnome.org/show_bug.cgi?id=638330 + */ @@ -750,6 +959,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 Outputs a message. + /** + * bug_000000_va1: + * @name: a name + * @...: A printf-style message to output + * + * Outputs a message. + */ @@ -766,6 +982,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=624001 + /** + * bug_624001a: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ @@ -782,6 +1003,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=624001 + /** + * bug_624001b: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ @@ -798,6 +1024,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=624001 + /** + * bug_624001c: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ @@ -814,6 +1045,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=624001 + /** + * bug_624001d: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ @@ -830,6 +1066,11 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 http://bugzilla.gnome.org/show_bug.cgi?id=624001 + /** + * bug_624001e: + * + * http://bugzilla.gnome.org/show_bug.cgi?id=624001 + */ -- cgit v1.2.1 From 0d17576deb4b72d29e60ed5d2d91ca8ecc0ef290 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Tue, 30 Jul 2013 11:26:31 +0200 Subject: tests: sync with GTK-Doc test suite @ 1846fc7e904f6f56b74c366d205d6bb946eac17e --- .../annotationparser/gtkdoc/bugs/tester.c.xml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml') diff --git a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml index 7d766c68..09ab9773 100644 --- a/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml +++ b/tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml @@ -1073,4 +1073,36 @@ http://bugzilla.gnome.org/show_bug.cgi?id=380824 */ + + /** + * deprecation_notice: + * + * Foo. + * + * Deprecated: 3.10: Use named icon "bar" instead. + */ + + + + deprecation_notice + + Foo. + + + deprecated + 3.10 + Use named icon "bar" instead. + + + + + /** + * deprecation_notice: + * + * Foo. + * + * Deprecated: 3.10: Use named icon "bar" instead. + */ + + -- cgit v1.2.1