summaryrefslogtreecommitdiff
path: root/src/tests/ecore_wl2/ecore_wl2_test_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ecore_wl2/ecore_wl2_test_input.c')
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_input.c22
1 files changed, 22 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 814fa800b3..479b1d385c 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_input.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c
@@ -67,6 +67,27 @@ EFL_START_TEST(wl2_input_seat_id_get)
67} 67}
68EFL_END_TEST 68EFL_END_TEST
69 69
70EFL_START_TEST(wl2_input_display_get)
71{
72 Ecore_Wl2_Display *disp;
73 Ecore_Wl2_Input *input;
74 Eina_Iterator *itr;
75
76 disp = _display_connect();
77 ck_assert(disp != NULL);
78
79 itr = ecore_wl2_display_inputs_get(disp);
80 ck_assert(itr != NULL);
81
82 EINA_ITERATOR_FOREACH(itr, input)
83 {
84 ck_assert(ecore_wl2_input_display_get(input) != NULL);
85 }
86
87 eina_iterator_free(itr);
88}
89EFL_END_TEST
90
70void 91void
71ecore_wl2_test_input(TCase *tc) 92ecore_wl2_test_input(TCase *tc)
72{ 93{
@@ -74,5 +95,6 @@ ecore_wl2_test_input(TCase *tc)
74 { 95 {
75 tcase_add_test(tc, wl2_input_seat_get); 96 tcase_add_test(tc, wl2_input_seat_get);
76 tcase_add_test(tc, wl2_input_seat_id_get); 97 tcase_add_test(tc, wl2_input_seat_id_get);
98 tcase_add_test(tc, wl2_input_display_get);
77 } 99 }
78} 100}