summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:53:09 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:53:09 -0500
commit82135245839583829fd78712809ea5f5e6e827e5 (patch)
treea201279a4324f215e2137e58d0fba493dcf1de97
parenteb7816c7279277e71ca8deb23796a042db1bbdf8 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_rotation_app functions
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index 364991e..1a4385a 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)
244} 244}
245EFL_END_TEST 245EFL_END_TEST
246 246
247EFL_START_TEST(wl2_window_rotation_app)
248{
249 Ecore_Wl2_Display *disp;
250 Ecore_Wl2_Window *win;
251 Eina_Bool r = EINA_FALSE;
252
253 disp = _display_connect();
254 ck_assert(disp != NULL);
255
256 win = _window_create(disp);
257 ck_assert(win != NULL);
258
259 ecore_wl2_window_rotation_app_set(win, EINA_TRUE);
260
261 r = ecore_wl2_window_rotation_app_get(win);
262 fail_if(r != EINA_TRUE);
263}
264EFL_END_TEST
265
247void 266void
248ecore_wl2_test_window(TCase *tc) 267ecore_wl2_test_window(TCase *tc)
249{ 268{
@@ -263,5 +282,6 @@ ecore_wl2_test_window(TCase *tc)
263 tcase_add_test(tc, wl2_window_fullscreen); 282 tcase_add_test(tc, wl2_window_fullscreen);
264 tcase_add_test(tc, wl2_window_maximize); 283 tcase_add_test(tc, wl2_window_maximize);
265 tcase_add_test(tc, wl2_window_preferred_rot); 284 tcase_add_test(tc, wl2_window_preferred_rot);
285 tcase_add_test(tc, wl2_window_rotation_app);
266 } 286 }
267} 287}