summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:44:39 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:44:39 -0500
commit239549deec2adf2d14fe436cbce07a1f90898d35 (patch)
treebc5d2d4e3e026d1fbc6e343ad78226a42adb3809
parent52299bffa0e5ef638128431e96c0a599941489d7 (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_fullscreen 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 2962be4..69f93e3 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -187,6 +187,25 @@ EFL_START_TEST(wl2_window_focus_skip)
187} 187}
188EFL_END_TEST 188EFL_END_TEST
189 189
190EFL_START_TEST(wl2_window_fullscreen)
191{
192 Ecore_Wl2_Display *disp;
193 Ecore_Wl2_Window *win;
194 Eina_Bool full = EINA_FALSE;
195
196 disp = _display_connect();
197 ck_assert(disp != NULL);
198
199 win = _window_create(disp);
200 ck_assert(win != NULL);
201
202 ecore_wl2_window_fullscreen_set(win, EINA_TRUE);
203
204 full = ecore_wl2_window_fullscreen_get(win);
205 fail_if(full != EINA_TRUE);
206}
207EFL_END_TEST
208
190void 209void
191ecore_wl2_test_window(TCase *tc) 210ecore_wl2_test_window(TCase *tc)
192{ 211{
@@ -203,5 +222,6 @@ ecore_wl2_test_window(TCase *tc)
203 tcase_add_test(tc, wl2_window_alpha); 222 tcase_add_test(tc, wl2_window_alpha);
204 tcase_add_test(tc, wl2_window_floating_mode); 223 tcase_add_test(tc, wl2_window_floating_mode);
205 tcase_add_test(tc, wl2_window_focus_skip); 224 tcase_add_test(tc, wl2_window_focus_skip);
225 tcase_add_test(tc, wl2_window_fullscreen);
206 } 226 }
207} 227}