summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-05-01 12:07:44 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-05-12 10:11:07 +0800
commit57d07bd38bfd08f1dd9dbac365a55ed1505cb7ff (patch)
treea6a8290eb77cf572a709020cc4f7882f187e7116
parenta3b4ee568985ddb10cc71f58c5c937c1dd86581f (diff)
downloadmutter-57d07bd38bfd08f1dd9dbac365a55ed1505cb7ff.tar.gz
tests/monitor-unit-tests: Check meta_monitor_is_active()
https://bugzilla.gnome.org/show_bug.cgi?id=781723
-rw-r--r--src/tests/monitor-unit-tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c
index 7929a9c29..bbef527ef 100644
--- a/src/tests/monitor-unit-tests.c
+++ b/src/tests/monitor-unit-tests.c
@@ -583,6 +583,10 @@ check_monitor_configuration (MonitorTestCase *test_case)
expected_current_mode_index)->data;
g_assert (current_mode == expected_current_mode);
+ if (current_mode)
+ g_assert (meta_monitor_is_active (monitor));
+ else
+ g_assert (!meta_monitor_is_active (monitor));
if (current_mode)
{