tests/ecore_wl2: Add test for ecore_wl2_window_role functions

Summary:
tests/ecore_wl2: Add test for ecore_wl2_window_class functions

ref T8016

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8016

Differential Revision: https://phab.enlightenment.org/D10829
This commit is contained in:
Woochanlee 2019-12-09 07:57:31 -05:00 committed by Christopher Michael
parent 6d62f66c08
commit 431f3b1fce
1 changed files with 20 additions and 0 deletions

View File

@ -433,6 +433,25 @@ EFL_START_TEST(wl2_window_available_rotation)
}
EFL_END_TEST
EFL_START_TEST(wl2_window_role)
{
Ecore_Wl2_Display *disp;
Ecore_Wl2_Window *win;
const char *role;
disp = _display_connect();
ck_assert(disp != NULL);
win = _window_create(disp);
ck_assert(win != NULL);
ecore_wl2_window_role_set(win, "TEST");
role = ecore_wl2_window_role_get(win);
fail_if(strcmp(role, "TEST"));
}
EFL_END_TEST
void
ecore_wl2_test_window(TCase *tc)
{
@ -461,5 +480,6 @@ ecore_wl2_test_window(TCase *tc)
tcase_add_test(tc, wl2_window_aspect);
tcase_add_test(tc, wl2_window_class);
tcase_add_test(tc, wl2_window_title);
tcase_add_test(tc, wl2_window_role);
}
}