[gtk: 2/4] tests: Check for nicks and blurbs not being set
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 2/4] tests: Check for nicks and blurbs not being set
- Date: Thu, 12 May 2022 02:18:06 +0000 (UTC)
commit f5fc71fe823f5c5a1775d7f055481d917348b670
Author: Sophie Herold <sophie hemio de>
Date: Wed May 11 17:07:21 2022 +0200
tests: Check for nicks and blurbs not being set
testsuite/gtk/object.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/testsuite/gtk/object.c b/testsuite/gtk/object.c
index 3a07b79d23..045f3b48a9 100644
--- a/testsuite/gtk/object.c
+++ b/testsuite/gtk/object.c
@@ -256,6 +256,9 @@ widget_test_properties (GtkWidget *widget,
for (i = 0; i < n_pspecs; i++)
{
GParamSpec *pspec = pspecs[i];
+ /* we want to test if the nick is null, but the getter defaults to the name */
+ g_assert_cmpstr (g_param_spec_get_nick (pspec), ==, g_param_spec_get_name (pspec));
+ g_assert_cmpstr (g_param_spec_get_blurb (pspec), ==, NULL);
if (pspec->flags & G_PARAM_WRITABLE &&
!(pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY)))
object_test_property (G_OBJECT (widget), pspecs[i], dvalue);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]