0009_input: Add ecore_wl2_input_keyboard_horizontal_way_repeat_set/get TCs 88/313688/4
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 1 Jul 2024 04:28:43 +0000 (13:28 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 1 Jul 2024 04:37:21 +0000 (13:37 +0900)
Change-Id: I99cd079713b1ace6917af54bad34b33bd79656df
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/testcase/0009_input.cpp

index 508fe0037790e30ecea6748443c4d448ab1ec120..25dd0613f8e0d5f3afb0a3bd850e47a059f5311d 100644 (file)
@@ -705,6 +705,48 @@ TEST_F(etTestInput, input_keyboard_repeat_get_null_input)
    ASSERT_FALSE(ret);
 }
 
+TEST_F(etTestInput, input_keyboard_horizontal_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_horizontal_way_repeat_set(input, init_rate, init_delay);
+   ASSERT_TRUE(ret);
+
+   ret = ecore_wl2_input_keyboard_horizontal_way_repeat_get(input, &rate, &delay);
+   ASSERT_TRUE(ret);
+
+   ASSERT_EQ(rate, init_rate);
+   ASSERT_EQ(delay, init_delay);
+}
+
+TEST_F(etTestInput, input_keyboard_horizontal_way_repeat_set_null_input)
+{
+   Eina_Bool ret = EINA_FALSE;
+   double init_rate = 2.0, init_delay = 2.0;
+
+   ret = ecore_wl2_input_keyboard_horizontal_way_repeat_set(NULL, init_rate, init_delay);
+   ASSERT_FALSE(ret);
+}
+
+TEST_F(etTestInput, input_keyboard_horizontal_way_repeat_get_null_input)
+{
+   Eina_Bool ret = EINA_FALSE;
+   double rate, delay;
+
+   ret = ecore_wl2_input_keyboard_horizontal_way_repeat_get(NULL, &rate, &delay);
+   ASSERT_FALSE(ret);
+}
+
 TEST_F(etTestInput, keyboard_get)
 {
    Ecore_Wl2_Window *wlwin = NULL;