mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 04:02:36 +00:00
tests: Check expected monitor mode count
https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
parent
2507e53d04
commit
85638c1b19
@ -617,6 +617,10 @@ check_monitor_configuration (MonitorTestCase *test_case)
|
|||||||
test_case->expect.monitors[i].height_mm);
|
test_case->expect.monitors[i].height_mm);
|
||||||
|
|
||||||
modes = meta_monitor_get_modes (monitor);
|
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++)
|
for (l_mode = modes, j = 0; l_mode; l_mode = l_mode->next, j++)
|
||||||
{
|
{
|
||||||
MetaMonitorMode *mode = l_mode->data;
|
MetaMonitorMode *mode = l_mode->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user