summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-01-22 07:41:39 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-22 07:43:49 -0500
commit0bf03036b7c395b5d7d54340e25783c5b920a984 (patch)
tree7a3096815390d3b68fdda9b5e856da3a3a4e8a8d
parente23dc58e200e89ed2eb72ee9931e0f1db83bfddf (diff)
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
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_window.c54
1 files changed, 54 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 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)
883} 883}
884EFL_END_TEST 884EFL_END_TEST
885 885
886EFL_START_TEST(wl2_window_move)
887{
888 Ecore_Wl2_Display *disp;
889 Ecore_Wl2_Window *win;
890
891 disp = _display_connect();
892 ck_assert(disp != NULL);
893
894 win = _window_create(disp);
895 ck_assert(win != NULL);
896
897 //FIXME: Need some discussion about how to validate this API in TC.
898 ecore_wl2_window_move(NULL, NULL);
899 ecore_wl2_window_move(win, NULL);
900}
901EFL_END_TEST
902
903EFL_START_TEST(wl2_window_resize)
904{
905 Ecore_Wl2_Display *disp;
906 Ecore_Wl2_Window *win;
907
908 disp = _display_connect();
909 ck_assert(disp != NULL);
910
911 win = _window_create(disp);
912 ck_assert(win != NULL);
913
914 //FIXME: Need some discussion about how to validate this API in TC.
915 ecore_wl2_window_resize(NULL, NULL, 0);
916 ecore_wl2_window_resize(win, NULL, 0);
917}
918EFL_END_TEST
919
920EFL_START_TEST(wl2_window_resizing_get)
921{
922 Ecore_Wl2_Display *disp;
923 Ecore_Wl2_Window *win;
924 Eina_Bool ret;
925
926 disp = _display_connect();
927 ck_assert(disp != NULL);
928
929 win = _window_create(disp);
930 ck_assert(win != NULL);
931
932 ret = ecore_wl2_window_resizing_get(win);
933 fail_if (ret == EINA_TRUE);
934}
935EFL_END_TEST
936
886void 937void
887ecore_wl2_test_window(TCase *tc) 938ecore_wl2_test_window(TCase *tc)
888{ 939{
@@ -922,5 +973,8 @@ ecore_wl2_test_window(TCase *tc)
922 tcase_add_test(tc, wl2_window_input_region); 973 tcase_add_test(tc, wl2_window_input_region);
923 tcase_add_test(tc, wl2_window_opaque_region); 974 tcase_add_test(tc, wl2_window_opaque_region);
924 tcase_add_test(tc, wl2_window_popup_input); 975 tcase_add_test(tc, wl2_window_popup_input);
976 tcase_add_test(tc, wl2_window_move);
977 tcase_add_test(tc, wl2_window_resize);
978 tcase_add_test(tc, wl2_window_resizing_get);
925 } 979 }
926} 980}