diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2024-06-28 18:46:22 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2024-06-28 19:06:01 +0900 |
commit | 783b0232a08ef607cce90bbec8e527c5efef2446 (patch) | |
tree | 694d4129a003c6e66dec60719aad7968d33585ba | |
parent | 4383bdecda44f64aa427b1ef947b7e2b0c467c0a (diff) | |
download | e-tizen-testcase-783b0232a08ef607cce90bbec8e527c5efef2446.tar.gz e-tizen-testcase-783b0232a08ef607cce90bbec8e527c5efef2446.tar.bz2 e-tizen-testcase-783b0232a08ef607cce90bbec8e527c5efef2446.zip |
0009_input: add ecore_wl2_input_pointer_set() TC
Change-Id: I644d6c99fd5dea69a82b164026c672ab509b9457
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
-rw-r--r-- | src/testcase/0009_input.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testcase/0009_input.cpp b/src/testcase/0009_input.cpp index 22ac72a..1e895cc 100644 --- a/src/testcase/0009_input.cpp +++ b/src/testcase/0009_input.cpp @@ -451,6 +451,25 @@ TEST_F(etTestInput, input_keymap_get_negative) ASSERT_EQ(keymap, nullptr); } +TEST_F(etTestInput, input_pointer_set) +{ + Ecore_Wl2_Display *display = NULL; + Ecore_Wl2_Input *input = NULL; + Eina_Bool ret = EINA_TRUE; + + 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); + + // return void, so just for coverage and checking crash + ecore_wl2_input_pointer_set(input, NULL, 0, 0); + ASSERT_TRUE(ret); + + ASSERT_EQ(etRunner::get().verifyTC(testCaseName, testName), EINA_TRUE); +} + TEST_F(etTestInput, keyboard_get) { Ecore_Wl2_Window *wlwin = NULL; |