forked from enlightenment/efl
tests/ecore_wl2: Add test for ecore_wl2_window_surface_get function
ref T8016
This commit is contained in:
parent
ccfd74f17a
commit
11de06e5b8
|
@ -41,6 +41,23 @@ EFL_START_TEST(wl2_window_new)
|
||||||
}
|
}
|
||||||
EFL_END_TEST
|
EFL_END_TEST
|
||||||
|
|
||||||
|
EFL_START_TEST(wl2_window_surface_get)
|
||||||
|
{
|
||||||
|
Ecore_Wl2_Display *disp;
|
||||||
|
Ecore_Wl2_Window *win;
|
||||||
|
struct wl_surface *surf;
|
||||||
|
|
||||||
|
disp = _display_connect();
|
||||||
|
ck_assert(disp != NULL);
|
||||||
|
|
||||||
|
win = _window_create(disp);
|
||||||
|
ck_assert(win != NULL);
|
||||||
|
|
||||||
|
surf = ecore_wl2_window_surface_get(win);
|
||||||
|
ck_assert(surf != NULL);
|
||||||
|
}
|
||||||
|
EFL_END_TEST
|
||||||
|
|
||||||
void
|
void
|
||||||
ecore_wl2_test_window(TCase *tc)
|
ecore_wl2_test_window(TCase *tc)
|
||||||
{
|
{
|
||||||
|
@ -48,5 +65,6 @@ ecore_wl2_test_window(TCase *tc)
|
||||||
{
|
{
|
||||||
/* window tests can only run if there is an existing compositor */
|
/* window tests can only run if there is an existing compositor */
|
||||||
tcase_add_test(tc, wl2_window_new);
|
tcase_add_test(tc, wl2_window_new);
|
||||||
|
tcase_add_test(tc, wl2_window_surface_get);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue