summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-08 11:06:15 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-08 11:06:15 -0500
commitd8c0080dba592668869f83134be51766eaf6b3d2 (patch)
tree6b38f269b687c801ff51265dcb4e9349595293bb
parent60672bdc5aafa54d9e8e1d8c4fac3df3af2fe322 (diff)
tests/ecore_wl2: Add test for ecore_wl2_input_seat_capabilities_get
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_input.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_input.c b/src/tests/ecore_wl2/ecore_wl2_test_input.c
index 696a6c7c9f..98b9e9758e 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_input.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c
@@ -132,6 +132,30 @@ EFL_START_TEST(wl2_input_name_get)
132} 132}
133EFL_END_TEST 133EFL_END_TEST
134 134
135EFL_START_TEST(wl2_input_seat_capabilities)
136{
137 Ecore_Wl2_Display *disp;
138 Ecore_Wl2_Input *input;
139 Eina_Iterator *itr;
140
141 disp = _display_connect();
142 ck_assert(disp != NULL);
143
144 itr = ecore_wl2_display_inputs_get(disp);
145 ck_assert(itr != NULL);
146
147 EINA_ITERATOR_FOREACH(itr, input)
148 {
149 Ecore_Wl2_Seat_Capabilities cap = ECORE_WL2_SEAT_CAPABILITIES_NONE;
150
151 cap = ecore_wl2_input_seat_capabilities_get(input);
152 ck_assert(cap != ECORE_WL2_SEAT_CAPABILITIES_NONE);
153 }
154
155 eina_iterator_free(itr);
156}
157EFL_END_TEST
158
135void 159void
136ecore_wl2_test_input(TCase *tc) 160ecore_wl2_test_input(TCase *tc)
137{ 161{
@@ -142,5 +166,6 @@ ecore_wl2_test_input(TCase *tc)
142 tcase_add_test(tc, wl2_input_display_get); 166 tcase_add_test(tc, wl2_input_display_get);
143 tcase_add_test(tc, wl2_input_keymap_get); 167 tcase_add_test(tc, wl2_input_keymap_get);
144 tcase_add_test(tc, wl2_input_name_get); 168 tcase_add_test(tc, wl2_input_name_get);
169 tcase_add_test(tc, wl2_input_seat_capabilities);
145 } 170 }
146} 171}