tests/ecore_wl2: Add test for ecore_wl2_window_input_region functions

ref T8016
This commit is contained in:
Christopher Michael 2020-01-08 10:33:53 -05:00
parent 594ed747a7
commit 59ec4ea1b3
1 changed files with 23 additions and 0 deletions

View File

@ -442,6 +442,28 @@ EFL_START_TEST(wl2_window_role)
}
EFL_END_TEST
EFL_START_TEST(wl2_window_input_region)
{
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_input_region_set(win, 10, 10, 100, 100);
ecore_wl2_window_input_region_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)
{
@ -470,5 +492,6 @@ ecore_wl2_test_window(TCase *tc)
tcase_add_test(tc, wl2_window_class);
tcase_add_test(tc, wl2_window_title);
tcase_add_test(tc, wl2_window_role);
tcase_add_test(tc, wl2_window_input_region);
}
}