summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-08 11:02:11 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-08 11:02:11 -0500
commit60672bdc5aafa54d9e8e1d8c4fac3df3af2fe322 (patch)
tree52f0d679936a26105dd66f3275abbddf7687f955
parent9df48a5a3c47471ad25146888b413f088d5bcf9c (diff)
tests/ecore_wl2: Add test for ecore_wl2_display_input_find_by_name
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c
index 99b441b433..2f77d2705f 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -177,6 +177,19 @@ EFL_START_TEST(wl2_display_compositor_version_get)
177} 177}
178EFL_END_TEST 178EFL_END_TEST
179 179
180EFL_START_TEST(wl2_display_input_find_by_name)
181{
182 Ecore_Wl2_Display *disp;
183 Ecore_Wl2_Input *input;
184
185 disp = _display_connect();
186 ck_assert(disp != NULL);
187
188 input = ecore_wl2_display_input_find_by_name(disp, "default");
189 ck_assert(input != NULL);
190}
191EFL_END_TEST
192
180void 193void
181ecore_wl2_test_display(TCase *tc) 194ecore_wl2_test_display(TCase *tc)
182{ 195{
@@ -202,5 +215,6 @@ ecore_wl2_test_display(TCase *tc)
202 tcase_add_test(tc, wl2_display_screen_size_get); 215 tcase_add_test(tc, wl2_display_screen_size_get);
203 tcase_add_test(tc, wl2_display_inputs_get); 216 tcase_add_test(tc, wl2_display_inputs_get);
204 tcase_add_test(tc, wl2_display_compositor_version_get); 217 tcase_add_test(tc, wl2_display_compositor_version_get);
218 tcase_add_test(tc, wl2_display_input_find_by_name);
205 } 219 }
206} 220}