summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:39:15 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:39:15 -0500
commit17919040b6d906af6b033b6fafb1fe4103f70efc (patch)
treeac0c010ab8326c6bb3f98a48fb5967a8b4bc0566
parent1357171d569a411d905ba406e94b0f3bc30a829d (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_floating_mode_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 48b85d5..d70a3a8 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -149,6 +149,25 @@ EFL_START_TEST(wl2_window_alpha)
149} 149}
150EFL_END_TEST 150EFL_END_TEST
151 151
152EFL_START_TEST(wl2_window_floating_mode)
153{
154 Ecore_Wl2_Display *disp;
155 Ecore_Wl2_Window *win;
156 Eina_Bool f = EINA_FALSE;
157
158 disp = _display_connect();
159 ck_assert(disp != NULL);
160
161 win = _window_create(disp);
162 ck_assert(win != NULL);
163
164 ecore_wl2_window_floating_mode_set(win, EINA_TRUE);
165
166 f = ecore_wl2_window_floating_mode_get(win);
167 fail_if(f != EINA_TRUE);
168}
169EFL_END_TEST
170
152void 171void
153ecore_wl2_test_window(TCase *tc) 172ecore_wl2_test_window(TCase *tc)
154{ 173{
@@ -163,5 +182,6 @@ ecore_wl2_test_window(TCase *tc)
163 tcase_add_test(tc, wl2_window_aux_hints_supported_get); 182 tcase_add_test(tc, wl2_window_aux_hints_supported_get);
164 tcase_add_test(tc, wl2_window_display_get); 183 tcase_add_test(tc, wl2_window_display_get);
165 tcase_add_test(tc, wl2_window_alpha); 184 tcase_add_test(tc, wl2_window_alpha);
185 tcase_add_test(tc, wl2_window_floating_mode);
166 } 186 }
167} 187}