From e793f9a35c19173eb4d0e17caec808252332fb57 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 1 Jul 2024 13:37:50 +0900 Subject: 0009_input: Add ecore_wl2_input_keyboard_vertical_way_repeat_set/get TCs [----------] 71 tests from etTestInput (154887 ms total) [----------] Global test environment tear-down [==========] 71 tests from 1 test suite ran. (154888 ms total) [ PASSED ] 71 tests. Change-Id: If0c31650f957c8b83353c2beed0e1c7bc2f2819b Signed-off-by: Jihoon Kim --- src/testcase/0009_input.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/testcase/0009_input.cpp b/src/testcase/0009_input.cpp index 25dd061..0c81d0d 100644 --- a/src/testcase/0009_input.cpp +++ b/src/testcase/0009_input.cpp @@ -747,6 +747,48 @@ TEST_F(etTestInput, input_keyboard_horizontal_way_repeat_get_null_input) ASSERT_FALSE(ret); } +TEST_F(etTestInput, input_keyboard_vertical_way_repeat_set) +{ + Eina_Bool ret = EINA_FALSE; + Ecore_Wl2_Display *display = NULL; + Ecore_Wl2_Input *input = NULL; + double init_rate = 2.0, init_delay = 2.0; + double rate, delay; + + display = ecore_wl2_connected_display_get(NULL); + EINA_SAFETY_ON_NULL_RETURN(display); + + input = ecore_wl2_input_default_input_get(display); + EINA_SAFETY_ON_NULL_RETURN(input); + + ret = ecore_wl2_input_keyboard_vertical_way_repeat_set(input, init_rate, init_delay); + ASSERT_TRUE(ret); + + ret = ecore_wl2_input_keyboard_vertical_way_repeat_get(input, &rate, &delay); + ASSERT_TRUE(ret); + + ASSERT_EQ(rate, init_rate); + ASSERT_EQ(delay, init_delay); +} + +TEST_F(etTestInput, input_keyboard_vertical_way_repeat_set_null_input) +{ + Eina_Bool ret = EINA_FALSE; + double init_rate = 2.0, init_delay = 2.0; + + ret = ecore_wl2_input_keyboard_vertical_way_repeat_set(NULL, init_rate, init_delay); + ASSERT_FALSE(ret); +} + +TEST_F(etTestInput, input_keyboard_vertical_way_repeat_get_null_input) +{ + Eina_Bool ret = EINA_FALSE; + double rate, delay; + + ret = ecore_wl2_input_keyboard_vertical_way_repeat_get(NULL, &rate, &delay); + ASSERT_FALSE(ret); +} + TEST_F(etTestInput, keyboard_get) { Ecore_Wl2_Window *wlwin = NULL; -- cgit v1.2.3