summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:47:36 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:47:36 -0500
commit67995823fd28e88a1c56e5d24c42a2a571cb5825 (patch)
treeae57447778568a29fa07c814a315f277b2a19674
parent239549deec2adf2d14fe436cbce07a1f90898d35 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_maximized 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 69f93e3..035da8c 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -206,6 +206,25 @@ EFL_START_TEST(wl2_window_fullscreen)
206} 206}
207EFL_END_TEST 207EFL_END_TEST
208 208
209EFL_START_TEST(wl2_window_maximize)
210{
211 Ecore_Wl2_Display *disp;
212 Ecore_Wl2_Window *win;
213 Eina_Bool m = EINA_FALSE;
214
215 disp = _display_connect();
216 ck_assert(disp != NULL);
217
218 win = _window_create(disp);
219 ck_assert(win != NULL);
220
221 ecore_wl2_window_maximized_set(win, EINA_TRUE);
222
223 m = ecore_wl2_window_maximized_get(win);
224 fail_if(m != EINA_TRUE);
225}
226EFL_END_TEST
227
209void 228void
210ecore_wl2_test_window(TCase *tc) 229ecore_wl2_test_window(TCase *tc)
211{ 230{
@@ -223,5 +242,6 @@ ecore_wl2_test_window(TCase *tc)
223 tcase_add_test(tc, wl2_window_floating_mode); 242 tcase_add_test(tc, wl2_window_floating_mode);
224 tcase_add_test(tc, wl2_window_focus_skip); 243 tcase_add_test(tc, wl2_window_focus_skip);
225 tcase_add_test(tc, wl2_window_fullscreen); 244 tcase_add_test(tc, wl2_window_fullscreen);
245 tcase_add_test(tc, wl2_window_maximize);
226 } 246 }
227} 247}