devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=96e148b2310e7d01df3734ded75f9299a6d64a21

commit 96e148b2310e7d01df3734ded75f9299a6d64a21
Author: Christopher Michael <[email protected]>
Date:   Tue Nov 12 09:55:41 2019 -0500

    tests/ecore_wl2: Modify ecore_wl2_window_rotation test
    
    Small patch to modify ecore_wl2_window_rotation test to support
    ecore_wl2_window_rotation_set function
    
    ref T8016
---
 src/tests/ecore_wl2/ecore_wl2_test_window.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c 
b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index 1a4385a719..2d7d516e1d 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -64,7 +64,7 @@ EFL_START_TEST(wl2_window_surface_test)
 }
 EFL_END_TEST
 
-EFL_START_TEST(wl2_window_rotation_get)
+EFL_START_TEST(wl2_window_rotation)
 {
    Ecore_Wl2_Display *disp;
    Ecore_Wl2_Window *win;
@@ -78,6 +78,11 @@ EFL_START_TEST(wl2_window_rotation_get)
 
    rot = ecore_wl2_window_rotation_get(win);
    ck_assert_int_ge(rot, 0);
+
+   ecore_wl2_window_rotation_set(win, 90);
+
+   rot = ecore_wl2_window_rotation_get(win);
+   fail_if(rot != 90);
 }
 EFL_END_TEST
 
@@ -271,7 +276,7 @@ ecore_wl2_test_window(TCase *tc)
         /* window tests can only run if there is an existing compositor */
         tcase_add_test(tc, wl2_window_new);
         tcase_add_test(tc, wl2_window_surface_test);
-        tcase_add_test(tc, wl2_window_rotation_get);
+        tcase_add_test(tc, wl2_window_rotation);
         tcase_add_test(tc, wl2_window_output_find);
         if (getenv("E_START"))
           tcase_add_test(tc, wl2_window_aux_hints_supported_get);

-- 


Reply via email to