summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 10:09:54 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 10:09:54 -0500
commit5b588c3c39a431d8b47e527941750b9ed089c311 (patch)
tree2bf55b57bc0c167040b30c9f6327259d3363d9ea
parent96e148b2310e7d01df3734ded75f9299a6d64a21 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_wm_rotation_supported
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 2d7d516..a3e1cbe 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -268,6 +268,25 @@ EFL_START_TEST(wl2_window_rotation_app)
268} 268}
269EFL_END_TEST 269EFL_END_TEST
270 270
271EFL_START_TEST(wl2_wm_window_rotation_app)
272{
273 Ecore_Wl2_Display *disp;
274 Ecore_Wl2_Window *win;
275 Eina_Bool r = EINA_FALSE;
276
277 disp = _display_connect();
278 ck_assert(disp != NULL);
279
280 win = _window_create(disp);
281 ck_assert(win != NULL);
282
283 ecore_wl2_window_wm_rotation_supported_set(win, EINA_TRUE);
284
285 r = ecore_wl2_window_wm_rotation_supported_get(win);
286 fail_if(r != EINA_TRUE);
287}
288EFL_END_TEST
289
271void 290void
272ecore_wl2_test_window(TCase *tc) 291ecore_wl2_test_window(TCase *tc)
273{ 292{
@@ -288,5 +307,6 @@ ecore_wl2_test_window(TCase *tc)
288 tcase_add_test(tc, wl2_window_maximize); 307 tcase_add_test(tc, wl2_window_maximize);
289 tcase_add_test(tc, wl2_window_preferred_rot); 308 tcase_add_test(tc, wl2_window_preferred_rot);
290 tcase_add_test(tc, wl2_window_rotation_app); 309 tcase_add_test(tc, wl2_window_rotation_app);
310 tcase_add_test(tc, wl2_wm_window_rotation_app);
291 } 311 }
292} 312}