0009_input: Add pointer_constraints_lock/unlock_pointer TC 35/312735/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 13 Jun 2024 10:35:32 +0000 (19:35 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 13 Jun 2024 10:35:32 +0000 (19:35 +0900)
Change-Id: Ia0fbca8d8fb0fc255cedbb0a530edd461978fad6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/testcase/0009_input.cpp

index 4d870bfc997447845866419c102546c05e60d78d..65fa1007bfd4e2bf27b436c502c1976ee3f98dae 100644 (file)
@@ -438,6 +438,29 @@ TEST_F(etTestInput, cursor_visible_set)
    ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
 }
 
+TEST_F(etTestInput, pointer_constraints_lock_pointer)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+   Eina_Bool ret = EINA_FALSE;
+
+   etWin *tw = initNormalWin("TCWin_PointerConstraintsLockPointer", 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);
+
+   ret = ecore_wl2_window_pointer_constraints_lock_pointer(wlwin);
+   ASSERT_TRUE(ret);
+
+   ret = ecore_wl2_window_pointer_constraints_unlock_pointer(wlwin);
+   ASSERT_TRUE(ret);
+
+   ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE);
+}
+
 #ifndef DISABLE_GESTURE_TESTS
 TEST_F(etTestInput, gesture_tap22)
 {