summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:35:50 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:35:50 -0500
commit1357171d569a411d905ba406e94b0f3bc30a829d (patch)
treea1af93178a50076d717c8a2890f6314ca8934f0c
parentfb718059256e4a124800c4145c3a90fd92ca0ffe (diff)
tests/ecore_wl2: Add test for ecore_wl2_window_alpha_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 948def80c5..48b85d5f30 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_window.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_window.c
@@ -130,6 +130,25 @@ EFL_START_TEST(wl2_window_display_get)
130} 130}
131EFL_END_TEST 131EFL_END_TEST
132 132
133EFL_START_TEST(wl2_window_alpha)
134{
135 Ecore_Wl2_Display *disp;
136 Ecore_Wl2_Window *win;
137 Eina_Bool alpha = EINA_FALSE;
138
139 disp = _display_connect();
140 ck_assert(disp != NULL);
141
142 win = _window_create(disp);
143 ck_assert(win != NULL);
144
145 ecore_wl2_window_alpha_set(win, EINA_TRUE);
146
147 alpha = ecore_wl2_window_alpha_get(win);
148 fail_if(alpha != EINA_TRUE);
149}
150EFL_END_TEST
151
133void 152void
134ecore_wl2_test_window(TCase *tc) 153ecore_wl2_test_window(TCase *tc)
135{ 154{
@@ -143,5 +162,6 @@ ecore_wl2_test_window(TCase *tc)
143 if (getenv("E_START")) 162 if (getenv("E_START"))
144 tcase_add_test(tc, wl2_window_aux_hints_supported_get); 163 tcase_add_test(tc, wl2_window_aux_hints_supported_get);
145 tcase_add_test(tc, wl2_window_display_get); 164 tcase_add_test(tc, wl2_window_display_get);
165 tcase_add_test(tc, wl2_window_alpha);
146 } 166 }
147} 167}