tests: Check expected monitor mode count

https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
Jonas Ådahl 2017-06-22 15:06:23 +08:00
parent 2507e53d04
commit 85638c1b19

View File

@ -617,6 +617,10 @@ check_monitor_configuration (MonitorTestCase *test_case)
test_case->expect.monitors[i].height_mm);
modes = meta_monitor_get_modes (monitor);
g_assert_cmpint (g_list_length (modes),
==,
test_case->expect.monitors[i].n_modes);
for (l_mode = modes, j = 0; l_mode; l_mode = l_mode->next, j++)
{
MetaMonitorMode *mode = l_mode->data;