[mutter/gnome-3-24] tests/monitor-unit-tests: Check meta_monitor_is_active()
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-24] tests/monitor-unit-tests: Check meta_monitor_is_active()
- Date: Fri, 12 May 2017 03:57:40 +0000 (UTC)
commit 57d07bd38bfd08f1dd9dbac365a55ed1505cb7ff
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon May 1 12:07:44 2017 +0800
tests/monitor-unit-tests: Check meta_monitor_is_active()
https://bugzilla.gnome.org/show_bug.cgi?id=781723
src/tests/monitor-unit-tests.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c
index 7929a9c..bbef527 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]