summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-07-20 10:47:26 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-07-21 07:41:47 +0200
commitd48fb32d8350abbd421658c733b74aaf44cb89ce (patch)
tree64a1f9f1b152881caab3bb1bce2c16eecf55a12a /tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page
parent44aa990e80758ed9ad842fadc19857f26a663105 (diff)
downloadgobject-introspection-d48fb32d8350abbd421658c733b74aaf44cb89ce.tar.gz
regress: Test for property and method with conflicting names
This is something that libraries are not supposed to do, but some do anyway (Soup and Clutter are two examples) and language bindings should handle it somehow or other. In GJS we want to make sure that the way it's handled doesn't change inadvertently, because buggy library code should not break existing user code. https://bugzilla.gnome.org/show_bug.cgi?id=785091
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page')
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page
new file mode 100644
index 00000000..ca3aa8da
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj.name_conflict.page
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<page id="Regress.TestObj.name_conflict"
+ type="topic"
+ style="method"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="Regress.TestObj" group="method" type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>none</api:type>
+ </api:returns>
+ <api:name>regress_test_obj_name_conflict</api:name>
+ <api:arg>
+ <api:type>Regress.TestObj</api:type>
+ <api:name>self</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>Regress.TestObj.name_conflict</title>
+ <synopsis><code mime="text/x-python">
+@accepts(Regress.TestObj)
+@returns(none)
+def name_conflict(self):
+ # Python wrapper for regress_test_obj_name_conflict()
+ </code></synopsis>
+
+
+<terms>
+<item>
+<title><code>self</code></title>
+ <p>A <link xref="Regress.TestObj"/></p>
+</item>
+</terms>
+
+</page>