forked from enlightenment/efl
tests/ecore_wl2: Add test for ecore_wl2_window_rotation_app functions
ref T8016
This commit is contained in:
parent
eb7816c727
commit
8213524583
|
@ -244,6 +244,25 @@ EFL_START_TEST(wl2_window_preferred_rot)
|
|||
}
|
||||
EFL_END_TEST
|
||||
|
||||
EFL_START_TEST(wl2_window_rotation_app)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
Ecore_Wl2_Window *win;
|
||||
Eina_Bool r = EINA_FALSE;
|
||||
|
||||
disp = _display_connect();
|
||||
ck_assert(disp != NULL);
|
||||
|
||||
win = _window_create(disp);
|
||||
ck_assert(win != NULL);
|
||||
|
||||
ecore_wl2_window_rotation_app_set(win, EINA_TRUE);
|
||||
|
||||
r = ecore_wl2_window_rotation_app_get(win);
|
||||
fail_if(r != EINA_TRUE);
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
||||
void
|
||||
ecore_wl2_test_window(TCase *tc)
|
||||
{
|
||||
|
@ -263,5 +282,6 @@ ecore_wl2_test_window(TCase *tc)
|
|||
tcase_add_test(tc, wl2_window_fullscreen);
|
||||
tcase_add_test(tc, wl2_window_maximize);
|
||||
tcase_add_test(tc, wl2_window_preferred_rot);
|
||||
tcase_add_test(tc, wl2_window_rotation_app);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue