[gtk/ebassi/childless-stack-page: 239/239] testsuite: Fix up a few test for GtkStackPage changes
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/childless-stack-page: 239/239] testsuite: Fix up a few test for GtkStackPage changes
- Date: Wed, 13 Jul 2022 14:03:14 +0000 (UTC)
commit b3ecc40cf1a52d8a5bc6729b9653e0ca07cd2115
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 27 17:24:58 2022 -0400
testsuite: Fix up a few test for GtkStackPage changes
GtkStackPage objects can no longer be freely created.
Update our generic object tests to take that into
account.
testsuite/gtk/defaultvalue.c | 1 +
testsuite/gtk/notify.c | 3 +++
testsuite/gtk/objects-finalize.c | 4 +++-
3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 455c2b3b25..f276d51d32 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -78,6 +78,7 @@ test_type (gconstpointer data)
if (g_type_is_a (type, GTK_TYPE_APPLICATION) ||
g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) ||
g_type_is_a (type, GTK_TYPE_LAYOUT_CHILD) ||
+ g_type_is_a (type, GTK_TYPE_STACK_PAGE) ||
#ifdef G_OS_UNIX
g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
#endif
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 7809d4e915..9907851c5d 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -409,6 +409,9 @@ test_type (gconstpointer data)
if (g_str_equal (g_type_name (type), "GtkPlacesSidebar"))
return;
+ if (g_type_is_a (type, GTK_TYPE_STACK_PAGE))
+ return;
+
/* These rely on a d-bus session bus */
if (g_type_is_a (type, GTK_TYPE_MOUNT_OPERATION))
return;
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index 1e0526569b..35d2475843 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -178,7 +178,9 @@ main (int argc, char **argv)
all_types[i] != GDK_TYPE_PIXBUF_LOADER &&
all_types[i] != gdk_pixbuf_simple_anim_iter_get_type() &&
!g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_TRIGGER) &&
- !g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_ACTION))
+ !g_type_is_a (all_types[i], GTK_TYPE_SHORTCUT_ACTION) &&
+ /* can't instantiate empty stack pages */
+ all_types[i] != GTK_TYPE_STACK_PAGE)
{
char *test_path = g_strdup_printf ("/FinalizeObject/%s", g_type_name (all_types[i]));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]