devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5b588c3c39a431d8b47e527941750b9ed089c311

commit 5b588c3c39a431d8b47e527941750b9ed089c311
Author: Christopher Michael <cp.mich...@samsung.com>
Date:   Tue Nov 12 10:09:54 2019 -0500

    tests/ecore_wl2: Add test for ecore_wl2_window_wm_rotation_supported
    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 2d7d516e1d..a3e1cbeb54 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)
 }
 EFL_END_TEST
 
+EFL_START_TEST(wl2_wm_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_wm_rotation_supported_set(win, EINA_TRUE);
+
+   r = ecore_wl2_window_wm_rotation_supported_get(win);
+   fail_if(r != EINA_TRUE);
+}
+EFL_END_TEST
+
 void
 ecore_wl2_test_window(TCase *tc)
 {
@@ -288,5 +307,6 @@ ecore_wl2_test_window(TCase *tc)
         tcase_add_test(tc, wl2_window_maximize);
         tcase_add_test(tc, wl2_window_preferred_rot);
         tcase_add_test(tc, wl2_window_rotation_app);
+        tcase_add_test(tc, wl2_wm_window_rotation_app);
      }
 }

-- 


Reply via email to