From 86f7acf0f139a917e460db26872b5a4306fca8d2 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 3 Feb 2013 06:58:53 -0500 Subject: tests: Use Regress GIR for doctool This makes us test a lot more functionality in the doc tool, and removes the need to have a lot of different test libraries, and different test infrastructure. --- .../Regress.AnnotationObject.compute_sum_nz.page | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page new file mode 100644 index 00000000..c7ae439f --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page @@ -0,0 +1,57 @@ + + + + + + + + none + + regress_annotation_object_compute_sum_nz + + Regress.AnnotationObject + self + + + [int] + nums + + + int + n_nums + + + + + AnnotationObject.compute_sum_nz + + +@accepts(Regress.AnnotationObject, [int], int) +@returns(none) +def compute_sum_nz(self, nums, n_nums): + # Python wrapper for regress_annotation_object_compute_sum_nz() + + + +

Test taking a zero-terminated array with length parameter

+ + + + +
+

self :

+

a

+

nums :

+

Sequence of numbers that are zero-terminated

+

n_nums :

+

Length of number array

+
+ + + +
-- cgit v1.2.1 From 3b64a2e808ae25b437c30bec237ada89dc4bcfb3 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 14 Feb 2013 22:47:10 -0500 Subject: doctool: Fix use of
tag in templates This isn't legal Mallard --- .../Regress.AnnotationObject.compute_sum_nz.page | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page index c7ae439f..053a368d 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page @@ -43,14 +43,20 @@ def compute_sum_nz(self, nums, n_nums): -
-

self :

-

a

-

nums :

-

Sequence of numbers that are zero-terminated

-

n_nums :

-

Length of number array

-
+ + +<code>self</code> +

a

+
+ +<code>nums</code> +

Sequence of numbers that are zero-terminated

+
+ +<code>n_nums</code> +

Length of number array

+
+
-- cgit v1.2.1 From d05e20a61d3e381e46fcb306f806566bbbd76312 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 06:04:11 -0500 Subject: doctool: Use format_xref to format some links to pages We don't do a full 100% conversion for all link tags, yet, because I don't want to break too much here. This may come later. --- .../Regress.AnnotationObject.compute_sum_nz.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page index 053a368d..eb65fe36 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page @@ -7,7 +7,7 @@ xmlns:ui="http://projectmallard.org/1.0/ui/"> - + none -- cgit v1.2.1 From 3dba3c40da7bc026bfa83109dc46ceb67471dd9d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 08:23:10 -0500 Subject: docwriter: Use the fully-qualified name for functions and methods --- .../Regress.AnnotationObject.compute_sum_nz.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page index eb65fe36..67efe7c5 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page @@ -28,7 +28,7 @@ - AnnotationObject.compute_sum_nz + Regress.AnnotationObject.compute_sum_nz @accepts(Regress.AnnotationObject, [int], int) -- cgit v1.2.1 From ba425f1fd48df193fe7a8c6cc559f0b408160604 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 14 Aug 2013 17:00:39 +0200 Subject: giscanner: honor line and paragraph breaks in description fields GTK-Doc parameter description fields are allowed to span multiple lines, tag description fields are allowed to span multiple lines and paragraphs. A tool fixing/rewriting GTK-Doc comment blocks in source files would need to have description fields parsed and stored (almost) exactly as they appear in the source file. --- .../Regress.AnnotationObject.compute_sum_nz.page | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page index 67efe7c5..b3beb695 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.AnnotationObject.compute_sum_nz.page @@ -50,7 +50,8 @@ def compute_sum_nz(self, nums, n_nums): <code>nums</code> -

Sequence of numbers that are zero-terminated

+

Sequence of numbers that +are zero-terminated

<code>n_nums</code> -- cgit v1.2.1