devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0bf03036b7c395b5d7d54340e25783c5b920a984

commit 0bf03036b7c395b5d7d54340e25783c5b920a984
Author: Woochanlee <wc0917....@samsung.com>
Date:   Wed Jan 22 07:41:39 2020 -0500

    tests/ecore_wl2: Add tests for move, resize, resizing_get functions.
    
    Summary:
    Add
    
    ecore_wl2_window_move
    ecore_wl2_window_resize
    ecore_wl2_window_resizing_get
    
    ref T8016
    
    Reviewers: devilhorns
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Maniphest Tasks: T8016
    
    Differential Revision: https://phab.enlightenment.org/D11150
---
 src/tests/ecore_wl2/ecore_wl2_test_window.c | 54 +++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/src/tests/ecore_wl2/ecore_wl2_test_window.c 
b/src/tests/ecore_wl2/ecore_wl2_test_window.c
index b166b4ba4e..ab60ac2077 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -883,6 +883,57 @@ EFL_START_TEST(wl2_window_update_begin)
 }
 EFL_END_TEST
 
+EFL_START_TEST(wl2_window_move)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   //FIXME: Need some discussion about how to validate this API in TC.
+   ecore_wl2_window_move(NULL, NULL);
+   ecore_wl2_window_move(win, NULL);
+}
+EFL_END_TEST
+
+EFL_START_TEST(wl2_window_resize)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   //FIXME: Need some discussion about how to validate this API in TC.
+   ecore_wl2_window_resize(NULL, NULL, 0);
+   ecore_wl2_window_resize(win, NULL, 0);
+}
+EFL_END_TEST
+
+EFL_START_TEST(wl2_window_resizing_get)
+{
+   Ecore_Wl2_Display *disp;
+   Ecore_Wl2_Window *win;
+   Eina_Bool ret;
+
+   disp = _display_connect();
+   ck_assert(disp != NULL);
+
+   win = _window_create(disp);
+   ck_assert(win != NULL);
+
+   ret = ecore_wl2_window_resizing_get(win);
+   fail_if (ret == EINA_TRUE);
+}
+EFL_END_TEST
+
 void
 ecore_wl2_test_window(TCase *tc)
 {
@@ -922,5 +973,8 @@ ecore_wl2_test_window(TCase *tc)
         tcase_add_test(tc, wl2_window_input_region);
         tcase_add_test(tc, wl2_window_opaque_region);
         tcase_add_test(tc, wl2_window_popup_input);
+        tcase_add_test(tc, wl2_window_move);
+        tcase_add_test(tc, wl2_window_resize);
+        tcase_add_test(tc, wl2_window_resizing_get);
      }
 }

-- 


Reply via email to