0009_input: add ecore_wl2_window_locked_pointer_cursor_position_hint_set() TC 55/312755/4
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 14 Jun 2024 01:49:30 +0000 (10:49 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 17 Jun 2024 00:49:23 +0000 (09:49 +0900)
Change-Id: I4164b31c0aabb7bfa44f913119782fe0463609a3
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/testcase/0009_input.cpp

index b580293b56b6c1c2047562d59106e37b46ce336c..a0834d933f0027d163d7b937897ce123c2041b46 100644 (file)
@@ -496,6 +496,27 @@ TEST_F(etTestInput, locked_pointer_region_set)
    ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
 }
 
+TEST_F(etTestInput, locked_pointer_cursor_position_hint_set)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+   Eina_Bool ret = EINA_TRUE;
+
+   etWin *tw = initNormalWin("TCWin_LockedPointerCursorPositionHintSet", EINA_FALSE);
+   ASSERT_TRUE(tw != NULL) << "failed to initiation window";
+
+   showTCWin(tw);
+   ASSERT_VIS_ON(tw);
+
+   wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(tw->elm_win);
+   EINA_SAFETY_ON_NULL_RETURN(wlwin);
+
+   // return void, so just for coverage and checking E20 crash
+   ecore_wl2_window_locked_pointer_cursor_position_hint_set(wlwin, 100, 100);
+   ASSERT_TRUE(ret);
+
+   ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
+}
+
 #ifndef DISABLE_GESTURE_TESTS
 TEST_F(etTestInput, gesture_tap22)
 {