summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:41:29 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:41:29 -0500
commit52299bffa0e5ef638128431e96c0a599941489d7 (patch)
treef106dc66835dbd3ad6f4b1b63abf8b2f3be2c4fe
parent17919040b6d906af6b033b6fafb1fe4103f70efc (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_focus_skip_get/set
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 d70a3a8..2962be4 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -168,6 +168,25 @@ EFL_START_TEST(wl2_window_floating_mode)
168} 168}
169EFL_END_TEST 169EFL_END_TEST
170 170
171EFL_START_TEST(wl2_window_focus_skip)
172{
173 Ecore_Wl2_Display *disp;
174 Ecore_Wl2_Window *win;
175 Eina_Bool skip = EINA_FALSE;
176
177 disp = _display_connect();
178 ck_assert(disp != NULL);
179
180 win = _window_create(disp);
181 ck_assert(win != NULL);
182
183 ecore_wl2_window_focus_skip_set(win, EINA_TRUE);
184
185 skip = ecore_wl2_window_focus_skip_get(win);
186 fail_if(skip != EINA_TRUE);
187}
188EFL_END_TEST
189
171void 190void
172ecore_wl2_test_window(TCase *tc) 191ecore_wl2_test_window(TCase *tc)
173{ 192{
@@ -183,5 +202,6 @@ ecore_wl2_test_window(TCase *tc)
183 tcase_add_test(tc, wl2_window_display_get); 202 tcase_add_test(tc, wl2_window_display_get);
184 tcase_add_test(tc, wl2_window_alpha); 203 tcase_add_test(tc, wl2_window_alpha);
185 tcase_add_test(tc, wl2_window_floating_mode); 204 tcase_add_test(tc, wl2_window_floating_mode);
205 tcase_add_test(tc, wl2_window_focus_skip);
186 } 206 }
187} 207}