testsuite: assert widgets are in matched sections
authorBenjamin Otte <otte@redhat.com>
Sun, 9 Apr 2023 02:24:47 +0000 (04:24 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 9 May 2023 15:00:40 +0000 (17:00 +0200)
All widgets that we display should have their sections known, so assert
that that is the case.

testsuite/gtk/listitemmanager.c

index d01ed4a13c56dac4aec40120851f7e75b1e5e1e3..9173d5e7084a65e448c48140bcf4d3b4d194dd93 100644 (file)
@@ -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)));