[gtk/nbpage: 21/21] tests: Update property tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/nbpage: 21/21] tests: Update property tests
- Date: Thu, 21 Feb 2019 05:34:06 +0000 (UTC)
commit 3eda783d0acc00530e064574424f974a6f921d29
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 21 00:29:09 2019 -0500
tests: Update property tests
The pages property must be skipped.
testsuite/gtk/defaultvalue.c | 4 ++++
testsuite/gtk/notify.c | 5 +++++
2 files changed, 9 insertions(+)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 603947d60c..34c9638cea 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -165,6 +165,10 @@ test_type (gconstpointer data)
(strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
continue;
+ if (g_type_is_a (type, GTK_TYPE_NOTEBOOK) &&
+ (strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */
+ continue;
+
if (g_type_is_a (type, GTK_TYPE_POPOVER) &&
(strcmp (pspec->name, "pointing-to") == 0))
continue;
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 20315b22f2..f36c8f43e7 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -617,6 +617,11 @@ test_type (gconstpointer data)
g_str_equal (pspec->name, "selected-item")))
continue;
+ /* can't set position without a notebook */
+ if (g_type_is_a (type, GTK_TYPE_NOTEBOOK_PAGE) &&
+ g_str_equal (pspec->name, "position"))
+ continue;
+
if (g_test_verbose ())
g_print ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]