summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-08-14 16:44:22 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:56:24 +0200
commit23dddc02594e733b65f9be76dbf0a0a1e54bc67c (patch)
tree8d277cabefa294ecd69cd87f25dd77964079fd4f /tests
parent1a5d001e386d71d769f5345825571807fadb9af3 (diff)
downloadgobject-introspection-23dddc02594e733b65f9be76dbf0a0a1e54bc67c.tar.gz
giscanner: improve state tracking
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/annotationparser/gi/identifier_section.xml60
-rw-r--r--tests/scanner/annotationparser/gi/parameter.xml5
-rw-r--r--tests/scanner/annotationparser/gi/syntax.xml2
-rw-r--r--tests/scanner/annotationparser/gi/tag_returns.xml10
4 files changed, 10 insertions, 67 deletions
diff --git a/tests/scanner/annotationparser/gi/identifier_section.xml b/tests/scanner/annotationparser/gi/identifier_section.xml
index 35ffec65..b75e2dd2 100644
--- a/tests/scanner/annotationparser/gi/identifier_section.xml
+++ b/tests/scanner/annotationparser/gi/identifier_section.xml
@@ -111,27 +111,9 @@
<description>The application class handles ...</description>
</docblock>
<messages>
- <message>4: Warning: Test: '@short_description' parameter unexpected at this location:
+ <message>4: Warning: Test: "@short_description" parameter unexpected at this location:
* @short_description: the application class
^</message>
- <message>5: Warning: Test: '@title' parameter unexpected at this location:
- * @title: Meep application
- ^</message>
- <message>6: Warning: Test: '@section_id' parameter unexpected at this location:
- * @section_id:
- ^</message>
- <message>7: Warning: Test: '@see_also' parameter unexpected at this location:
- * @see_also: #MeepSettings
- ^</message>
- <message>8: Warning: Test: '@stability' parameter unexpected at this location:
- * @stability: Stable
- ^</message>
- <message>9: Warning: Test: '@include' parameter unexpected at this location:
- * @include: meep/app.h
- ^</message>
- <message>10: Warning: Test: '@image' parameter unexpected at this location:
- * @image: application.png
- ^</message>
</messages>
</parser>
</test>
@@ -189,27 +171,9 @@
<description>The application class handles ...</description>
</docblock>
<messages>
- <message>5: Warning: Test: '@short_description' parameter unexpected at this location:
+ <message>5: Warning: Test: "@short_description" parameter unexpected at this location:
* @short_description: the application class
^</message>
- <message>6: Warning: Test: '@title' parameter unexpected at this location:
- * @title: Meep application
- ^</message>
- <message>7: Warning: Test: '@section_id' parameter unexpected at this location:
- * @section_id:
- ^</message>
- <message>8: Warning: Test: '@see_also' parameter unexpected at this location:
- * @see_also: #MeepSettings
- ^</message>
- <message>9: Warning: Test: '@stability' parameter unexpected at this location:
- * @stability: Stable
- ^</message>
- <message>10: Warning: Test: '@include' parameter unexpected at this location:
- * @include: meep/app.h
- ^</message>
- <message>11: Warning: Test: '@image' parameter unexpected at this location:
- * @image: application.png
- ^</message>
</messages>
</parser>
</test>
@@ -268,27 +232,9 @@
<description>The application class handles ...</description>
</docblock>
<messages>
- <message>6: Warning: Test: '@short_description' parameter unexpected at this location:
+ <message>6: Warning: Test: "@short_description" parameter unexpected at this location:
* @short_description: the application class
^</message>
- <message>7: Warning: Test: '@title' parameter unexpected at this location:
- * @title: Meep application
- ^</message>
- <message>8: Warning: Test: '@section_id' parameter unexpected at this location:
- * @section_id:
- ^</message>
- <message>9: Warning: Test: '@see_also' parameter unexpected at this location:
- * @see_also: #MeepSettings
- ^</message>
- <message>10: Warning: Test: '@stability' parameter unexpected at this location:
- * @stability: Stable
- ^</message>
- <message>11: Warning: Test: '@include' parameter unexpected at this location:
- * @include: meep/app.h
- ^</message>
- <message>12: Warning: Test: '@image' parameter unexpected at this location:
- * @image: application.png
- ^</message>
</messages>
</parser>
</test>
diff --git a/tests/scanner/annotationparser/gi/parameter.xml b/tests/scanner/annotationparser/gi/parameter.xml
index 5e3a3a1e..d6c4ab37 100644
--- a/tests/scanner/annotationparser/gi/parameter.xml
+++ b/tests/scanner/annotationparser/gi/parameter.xml
@@ -31,9 +31,12 @@
</tags>
</docblock>
<messages>
- <message>6: Warning: Test: '@param1' parameter unexpected at this location:
+ <message>6: Warning: Test: "@param1" parameter unexpected at this location:
* @param1: first parameter
^</message>
+ <message>7: Warning: Test: "Returns:" tag unexpected at this location:
+ * Returns: something
+ ^</message>
</messages>
</parser>
</test>
diff --git a/tests/scanner/annotationparser/gi/syntax.xml b/tests/scanner/annotationparser/gi/syntax.xml
index b8c85b50..6f63dff1 100644
--- a/tests/scanner/annotationparser/gi/syntax.xml
+++ b/tests/scanner/annotationparser/gi/syntax.xml
@@ -220,7 +220,7 @@ something */ code goes here
<description>The application class handles ...</description>
</docblock>
<messages>
- <message>4: Warning: Test: '@short_description' parameter unexpected at this location:
+ <message>4: Warning: Test: "@short_description" parameter unexpected at this location:
* @short_description: the application class
^</message>
</messages>
diff --git a/tests/scanner/annotationparser/gi/tag_returns.xml b/tests/scanner/annotationparser/gi/tag_returns.xml
index 96ee8049..ec6e2c45 100644
--- a/tests/scanner/annotationparser/gi/tag_returns.xml
+++ b/tests/scanner/annotationparser/gi/tag_returns.xml
@@ -50,19 +50,13 @@
<description>first parameter</description>
</parameter>
</parameters>
- <description>Tags should go after the comment block description</description>
<tags>
<tag>
<name>returns</name>
- <description>something</description>
+ <description>something Tags should go after the comment block description</description>
</tag>
</tags>
</docblock>
- <messages>
- <message>4: Warning: Test: 'Returns:' tag unexpected at this location:
- * Returns: something
- ^</message>
- </messages>
</parser>
</test>
@@ -157,7 +151,7 @@ parameter is encountered.</description>
</tags>
</docblock>
<messages>
- <message>8: Warning: Test: '@returns' parameter unexpected at this location:
+ <message>8: Warning: Test: "@returns" parameter unexpected at this location:
* @returns: something else
^</message>
<message>8: Warning: Test: encountered multiple 'Returns' parameters or tags for 'test_multiple_returns_tag_and_parameter'.</message>