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)
downloadefl-d8c0080dba592668869f83134be51766eaf6b3d2.tar.gz
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)
}
EFL_END_TEST
+EFL_START_TEST(wl2_input_seat_capabilities)
+{
+ Ecore_Wl2_Display *disp;
+ Ecore_Wl2_Input *input;
+ Eina_Iterator *itr;
+
+ disp = _display_connect();
+ ck_assert(disp != NULL);
+
+ itr = ecore_wl2_display_inputs_get(disp);
+ ck_assert(itr != NULL);
+
+ EINA_ITERATOR_FOREACH(itr, input)
+ {
+ Ecore_Wl2_Seat_Capabilities cap = ECORE_WL2_SEAT_CAPABILITIES_NONE;
+
+ cap = ecore_wl2_input_seat_capabilities_get(input);
+ ck_assert(cap != ECORE_WL2_SEAT_CAPABILITIES_NONE);
+ }
+
+ eina_iterator_free(itr);
+}
+EFL_END_TEST
+
void
ecore_wl2_test_input(TCase *tc)
{
@@ -142,5 +166,6 @@ ecore_wl2_test_input(TCase *tc)
tcase_add_test(tc, wl2_input_display_get);
tcase_add_test(tc, wl2_input_keymap_get);
tcase_add_test(tc, wl2_input_name_get);
+ tcase_add_test(tc, wl2_input_seat_capabilities);
}
}