summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-06-17 14:16:32 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-08-05 17:47:29 +0100
commit382430dc4d1a409a118aa9914aa002e2f7762434 (patch)
treefea65501327373932f88449dbfea89b50c1d8030 /tests/scanner
parentf83e75ddb971561503dd3afb58edbaa2aaf6dc0e (diff)
downloadgobject-introspection-382430dc4d1a409a118aa9914aa002e2f7762434.tar.gz
tests: Add a Regress test for the property accessors annotations
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/Regress-1.0-expected.gir6
-rw-r--r--tests/scanner/regress.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir
index 0e7142ad..bc8eb9f2 100644
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -4791,7 +4791,11 @@ raise an error.</doc>
<type name="utf8"/>
</array>
</property>
- <property name="string" writable="1" transfer-ownership="none">
+ <property name="string"
+ writable="1"
+ transfer-ownership="none"
+ setter="set_string"
+ getter="get_string">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="write-only"
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index b8e07a9d..26285d24 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -2690,7 +2690,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
/**
- * TestObj:int:
+ * RegressTestObj:int:
*/
pspec = g_param_spec_int ("int",
"int property",
@@ -2704,7 +2704,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:float:
+ * RegressTestObj:float:
*/
pspec = g_param_spec_float ("float",
"float property",
@@ -2718,7 +2718,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:double:
+ * RegressTestObj:double:
*/
pspec = g_param_spec_double ("double",
"double property",
@@ -2732,7 +2732,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
pspec);
/**
- * TestObj:string:
+ * RegressTestObj:string: (setter set_string) (getter get_string)
*/
pspec = g_param_spec_string ("string",
"string property",