From 82135245839583829fd78712809ea5f5e6e827e5 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 12 Nov 2019 09:53:09 -0500 Subject: [PATCH] tests/ecore_wl2: Add test for ecore_wl2_window_rotation_app 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 364991ea7d..1a4385a719 100644 --- a/src/tests/ecore_wl2/ecore_wl2_test_window.c +++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c @@ -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); } }