tests/ecore_wl2: Add test for ecore_wl2_window_geometry functions

ref T8016
This commit is contained in:
Christopher Michael 2019-11-19 08:37:29 -05:00
parent 36c70ee932
commit dd74c6ed35
1 changed files with 24 additions and 0 deletions

View File

@ -287,6 +287,29 @@ EFL_START_TEST(wl2_wm_window_rotation_app)
}
EFL_END_TEST
EFL_START_TEST(wl2_window_geometry)
{
Ecore_Wl2_Display *disp;
Ecore_Wl2_Window *win;
int x, y, w, h;
disp = _display_connect();
ck_assert(disp != NULL);
win = _window_create(disp);
ck_assert(win != NULL);
ecore_wl2_window_geometry_set(win, 10, 10, 100, 100);
ecore_wl2_window_geometry_get(win, &x, &y, &w, &h);
fail_if(x != 10);
fail_if(y != 10);
fail_if(w != 100);
fail_if(h != 100);
}
EFL_END_TEST
void
ecore_wl2_test_window(TCase *tc)
{
@ -308,5 +331,6 @@ ecore_wl2_test_window(TCase *tc)
tcase_add_test(tc, wl2_window_preferred_rot);
tcase_add_test(tc, wl2_window_rotation_app);
tcase_add_test(tc, wl2_wm_window_rotation_app);
tcase_add_test(tc, wl2_window_geometry);
}
}