devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8195368929be462427e430455e66b9d7dc952622
commit 8195368929be462427e430455e66b9d7dc952622 Author: Christopher Michael <[email protected]> Date: Tue Nov 19 09:31:46 2019 -0500 tests/ecore_wl2: Add test for ecore_wl2_window_type functions ref T8016 --- src/tests/ecore_wl2/ecore_wl2_test_window.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c b/src/tests/ecore_wl2/ecore_wl2_test_window.c index e68d8c1861..9c6462c5b9 100644 --- a/src/tests/ecore_wl2/ecore_wl2_test_window.c +++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c @@ -310,6 +310,25 @@ EFL_START_TEST(wl2_window_geometry) } EFL_END_TEST +EFL_START_TEST(wl2_window_type) +{ + Ecore_Wl2_Display *disp; + Ecore_Wl2_Window *win; + Ecore_Wl2_Window_Type type = ECORE_WL2_WINDOW_TYPE_NONE; + + disp = _display_connect(); + ck_assert(disp != NULL); + + win = _window_create(disp); + ck_assert(win != NULL); + + ecore_wl2_window_type_set(win, ECORE_WL2_WINDOW_TYPE_TOPLEVEL); + + type = ecore_wl2_window_type_get(win); + fail_if(type != ECORE_WL2_WINDOW_TYPE_TOPLEVEL); +} +EFL_END_TEST + void ecore_wl2_test_window(TCase *tc) { @@ -332,5 +351,6 @@ ecore_wl2_test_window(TCase *tc) tcase_add_test(tc, wl2_window_rotation_app); tcase_add_test(tc, wl2_wm_window_rotation_app); tcase_add_test(tc, wl2_window_geometry); + tcase_add_test(tc, wl2_window_type); } } --
