summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2024-07-01 13:37:50 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2024-07-01 13:41:26 +0900
commite793f9a35c19173eb4d0e17caec808252332fb57 (patch)
tree38f93d1e4bc361ae14311c3125551f41de0a08c4
parent4ca78df4a0aad34a115c4ed7ec60ee2f5f57a58d (diff)
downloade-tizen-testcase-e793f9a35c19173eb4d0e17caec808252332fb57.tar.gz
e-tizen-testcase-e793f9a35c19173eb4d0e17caec808252332fb57.tar.bz2
e-tizen-testcase-e793f9a35c19173eb4d0e17caec808252332fb57.zip
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 <jihoon48.kim@samsung.com>
-rw-r--r--src/testcase/0009_input.cpp42
1 files changed, 42 insertions, 0 deletions
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;