summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-02 11:24:13 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-11 12:34:52 -0500
commitc9450dc3d7e2f87fa980923594736621f0ecd6ae (patch)
tree6f1f986fe8fb00dcc83014a745e85a1b73345dc5 /tests
parentff80c6d88a28b26576508ab891c9b9da0b13ac49 (diff)
downloadgobject-introspection-c9450dc3d7e2f87fa980923594736621f0ecd6ae.tar.gz
docwriter: Define a new formatter method for getting params
This will let us gracefully skip over parameters that aren't exposed by specific language bindings. It also fixes a bug in the C/Python documentation where we weren't iterating over the right parameters.
Diffstat (limited to 'tests')
-rw-r--r--tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-vfunc.page2
-rw-r--r--tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page2
-rw-r--r--tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page4
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-vfunc.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-vfunc.page
index 6a71a87c..7ff7e568 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-vfunc.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-vfunc.page
@@ -25,6 +25,8 @@ void vfunc (DocExamplesObj* self,
<dl>
+<dt><p>self :</p></dt>
+<dd></dd>
<dt><p>first_arg :</p></dt>
<dd><p>first argument</p></dd>
<dt><p>Returns :</p></dt>
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
index 8dbe8a73..b154b8de 100644
--- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
+++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj.method.page
@@ -61,6 +61,8 @@ in as <code>obj</code>.</p><p>This should be a %FALSEALARM.</p>
<dl>
+<dt><p>obj :</p></dt>
+<dd><p>A <link xref="DocExamples.Obj"/>.</p></dd>
<dt><p>first_arg :</p></dt>
<dd><p>first argument</p></dd>
<dt><p>second_arg :</p></dt>
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page
index a4864631..94fe8f67 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page
@@ -13,7 +13,7 @@
<title>DocExamples.Obj::vfunc</title>
<synopsis><code mime="text/x-python">
-@accepts(int)
+@accepts(DocExamples.Obj, int)
@returns(none)
def do_vfunc(self, first_arg):
</code></synopsis>
@@ -26,6 +26,8 @@ def do_vfunc(self, first_arg):
<dl>
+<dt><p>self :</p></dt>
+<dd></dd>
<dt><p>first_arg :</p></dt>
<dd><p>first argument</p></dd>
</dl>