[mutter/gnome-41] tests/stage-view: Verify stage view list length after updating
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-41] tests/stage-view: Verify stage view list length after updating
- Date: Wed, 17 Nov 2021 08:33:22 +0000 (UTC)
commit 1e49ab813cd0f82149f04afaeec9ff1c6eb9d38b
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Sep 28 11:39:38 2021 +0200
tests/stage-view: Verify stage view list length after updating
src/tests/stage-view-tests.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/tests/stage-view-tests.c b/src/tests/stage-view-tests.c
index dbf2476cbc..abb2cebb09 100644
--- a/src/tests/stage-view-tests.c
+++ b/src/tests/stage-view-tests.c
@@ -1063,12 +1063,14 @@ static void
ensure_view_count (int n_views)
{
MetaBackend *backend = meta_get_backend ();
+ ClutterActor *stage = meta_backend_get_stage (backend);
MetaMonitorManager *monitor_manager =
meta_backend_get_monitor_manager (backend);
MetaMonitorManagerTest *monitor_manager_test =
META_MONITOR_MANAGER_TEST (monitor_manager);
MonitorTestCaseSetup test_case_setup;
MetaMonitorTestSetup *test_setup;
+ GList *stage_views;
test_case_setup = initial_test_case_setup;
test_case_setup.n_outputs = n_views;
@@ -1076,6 +1078,9 @@ ensure_view_count (int n_views)
test_setup = create_monitor_test_setup (&test_case_setup,
MONITOR_TEST_FLAG_NO_STORED);
meta_monitor_manager_test_emulate_hotplug (monitor_manager_test, test_setup);
+
+ stage_views = clutter_stage_peek_stage_views (CLUTTER_STAGE (stage));
+ g_assert_cmpuint (g_list_length (stage_views), ==, n_views);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]