tests/monitor-unit-tests: Check meta_monitor_is_active()

https://bugzilla.gnome.org/show_bug.cgi?id=781723
This commit is contained in:
Jonas Ådahl 2017-05-01 12:07:44 +08:00
parent a3b4ee5689
commit 57d07bd38b

View File

@ -583,6 +583,10 @@ check_monitor_configuration (MonitorTestCase *test_case)
expected_current_mode_index)->data; expected_current_mode_index)->data;
g_assert (current_mode == expected_current_mode); 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) if (current_mode)
{ {