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. --- ....test_callback_destroy_notify_no_user_data.page | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page new file mode 100644 index 00000000..a343923a --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page @@ -0,0 +1,54 @@ + + + + + + + + int + + regress_test_callback_destroy_notify_no_user_data + + Regress.TestCallbackUserData + callback + + + GLib.DestroyNotify + notify + + + + + test_callback_destroy_notify_no_user_data + + +@accepts(Regress.TestCallbackUserData, GLib.DestroyNotify) +@returns(int) +def test_callback_destroy_notify_no_user_data(callback, notify): + # Python wrapper for regress_test_callback_destroy_notify_no_user_data() + + + +

Adds a scope notified callback with no user data. This can invoke an error +condition in bindings which needs to be tested.

+ + + + +
+

callback :

+
+

notify :

+
+

Returns :

+
+
+ + + +
-- 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 --- ....test_callback_destroy_notify_no_user_data.page | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page index a343923a..7df745a1 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page @@ -40,14 +40,20 @@ condition in bindings which needs to be tested.

-
-

callback :

-
-

notify :

-
-

Returns :

-
-
+ + +<code>callback</code> + + + +<code>notify</code> + + + +<code>Returns</code> +{formatter.format(node, node.retval.doc)} + + -- 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.test_callback_destroy_notify_no_user_data.page | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page index 7df745a1..11899cc0 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page @@ -7,7 +7,7 @@ xmlns:ui="http://projectmallard.org/1.0/ui/"> - + int @@ -24,7 +24,7 @@ - test_callback_destroy_notify_no_user_data + Regress.test_callback_destroy_notify_no_user_data @accepts(Regress.TestCallbackUserData, GLib.DestroyNotify) -- 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.test_callback_destroy_notify_no_user_data.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page') diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page index 11899cc0..05883e8c 100644 --- a/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_callback_destroy_notify_no_user_data.page @@ -24,7 +24,7 @@ - Regress.test_callback_destroy_notify_no_user_data + Index.test_callback_destroy_notify_no_user_data @accepts(Regress.TestCallbackUserData, GLib.DestroyNotify) -- cgit v1.2.1