summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-04-09 04:24:47 +0200
committerBenjamin Otte <otte@redhat.com>2023-05-09 17:00:40 +0200
commit5d2605a1512b0380908dbb1982c180f3badb9d3d (patch)
tree820db925d394d0eac9d05c088bf618c044f3c939
parent40a7ec73a951ffdd1e254b5d475c72e5550b3fc4 (diff)
downloadgtk+-5d2605a1512b0380908dbb1982c180f3badb9d3d.tar.gz
testsuite: assert widgets are in matched sections
All widgets that we display should have their sections known, so assert that that is the case.
-rw-r--r--testsuite/gtk/listitemmanager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/gtk/listitemmanager.c b/testsuite/gtk/listitemmanager.c
index d01ed4a13c..9173d5e708 100644
--- a/testsuite/gtk/listitemmanager.c
+++ b/testsuite/gtk/listitemmanager.c
@@ -142,6 +142,7 @@ check_list_item_manager (GtkListItemManager *items,
if (tile->widget)
{
GObject *item = g_list_model_get_item (model, n_items);
+ g_assert_cmpint (section_state, ==, MATCHED_SECTION);
g_assert_cmphex (GPOINTER_TO_SIZE (item), ==, GPOINTER_TO_SIZE (gtk_list_item_base_get_item (GTK_LIST_ITEM_BASE (tile->widget))));
g_object_unref (item);
g_assert_cmpint (n_items, ==, gtk_list_item_base_get_position (GTK_LIST_ITEM_BASE (tile->widget)));