From: Christopher Michael Date: Thu, 1 Aug 2019 12:59:26 +0000 (-0400) Subject: tests/ecore_wl2: Add test for ecore_wl2_input_keymap_get X-Git-Tag: submit/tizen/20190805.083058~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a8a82391cb2b6697b83b6c2a74488f3c0733a50;p=platform%2Fupstream%2Fefl.git tests/ecore_wl2: Add test for ecore_wl2_input_keymap_get ref T8016 --- diff --git a/src/tests/ecore_wl2/ecore_wl2_test_input.c b/src/tests/ecore_wl2/ecore_wl2_test_input.c index 479b1d3..fd422e0 100644 --- a/src/tests/ecore_wl2/ecore_wl2_test_input.c +++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c @@ -88,6 +88,27 @@ EFL_START_TEST(wl2_input_display_get) } EFL_END_TEST +EFL_START_TEST(wl2_input_keymap_get) +{ + 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) + { + ck_assert(ecore_wl2_input_keymap_get(input) != NULL); + } + + eina_iterator_free(itr); +} +EFL_END_TEST + void ecore_wl2_test_input(TCase *tc) { @@ -96,5 +117,6 @@ ecore_wl2_test_input(TCase *tc) tcase_add_test(tc, wl2_input_seat_get); tcase_add_test(tc, wl2_input_seat_id_get); tcase_add_test(tc, wl2_input_display_get); + tcase_add_test(tc, wl2_input_keymap_get); } }