tests/ecore_wl2: Add test for ecore_wl2_window_floating_mode_get/set

functions

ref T8016
This commit is contained in:
Christopher Michael 2019-11-12 09:39:15 -05:00
parent 1357171d56
commit 17919040b6
1 changed files with 20 additions and 0 deletions

View File

@ -149,6 +149,25 @@ EFL_START_TEST(wl2_window_alpha)
}
EFL_END_TEST
EFL_START_TEST(wl2_window_floating_mode)
{
Ecore_Wl2_Display *disp;
Ecore_Wl2_Window *win;
Eina_Bool f = EINA_FALSE;
disp = _display_connect();
ck_assert(disp != NULL);
win = _window_create(disp);
ck_assert(win != NULL);
ecore_wl2_window_floating_mode_set(win, EINA_TRUE);
f = ecore_wl2_window_floating_mode_get(win);
fail_if(f != EINA_TRUE);
}
EFL_END_TEST
void
ecore_wl2_test_window(TCase *tc)
{
@ -163,5 +182,6 @@ ecore_wl2_test_window(TCase *tc)
tcase_add_test(tc, wl2_window_aux_hints_supported_get);
tcase_add_test(tc, wl2_window_display_get);
tcase_add_test(tc, wl2_window_alpha);
tcase_add_test(tc, wl2_window_floating_mode);
}
}