summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-08-05 18:11:25 +0100
committerEmmanuele Bassi <ebassi@gmail.com>2022-02-12 11:09:52 +0000
commit8e85d1ca937c166f07675d02fc84abb27d06ae11 (patch)
treeb6e5c9b4c3bfa4e613ca31f77993babb7ceb279e /tests
parentf36f2a00698f0cb4450b04fd59af6412b592e609 (diff)
downloadgobject-introspection-8e85d1ca937c166f07675d02fc84abb27d06ae11.tar.gz
scanner: Mark colliding properties as not introspectable
We prefer methods, signals, and virtual methods to properties, in case of a collision.
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-name-conflict.page18
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.TestObj-name-conflict.page18
-rw-r--r--tests/scanner/Regress-1.0-expected.gir1
3 files changed, 1 insertions, 36 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-name-conflict.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-name-conflict.page
deleted file mode 100644
index 165ea2fe..00000000
--- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-name-conflict.page
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<page id="Regress.TestObj-name-conflict"
- type="topic"
- style="property"
- 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="property" type="guide"/>
- <title type="link" role="topic">name-conflict</title>
- </info>
- <title>Regress.TestObj.name_conflict</title>
- <synopsis><code mime="text/x-gjs">
-TestObj.name_conflict: Number(gint) (Read / Write / Construct)
- </code></synopsis>
-
-
-</page>
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
deleted file mode 100644
index 6d02a57c..00000000
--- a/tests/scanner/Regress-1.0-Python-expected/Regress.TestObj-name-conflict.page
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<page id="Regress.TestObj-name-conflict"
- type="topic"
- style="property"
- 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="property" type="guide"/>
- <title type="link" role="topic">name-conflict</title>
- </info>
- <title>Regress.TestObj:name-conflict</title>
- <synopsis><code mime="text/x-python">
-"name-conflict" int : Read / Write / Construct
- </code></synopsis>
-
-
-</page>
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 99d68271..2374eb8e 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -4885,6 +4885,7 @@ raise an error.</doc>
</type>
</property>
<property name="name-conflict"
+ introspectable="0"
writable="1"
construct="1"
transfer-ownership="none">