Signed-off-by: sunjiakun <sunjiakun5@huawei.com>
This commit is contained in:
sunjiakun 2024-08-09 10:19:00 +08:00
parent d3cd2b2bee
commit 1bb9688cd1

View File

@ -1200,6 +1200,7 @@ HWTEST_F(LongPressRecognizerTestNg, LongPressRecognizerHandleOverdueDeadlineTest
* @tc.expected: step2. result equals REJECT.
*/
longPressRecognizerPtr->refereeState_ = RefereeState::DETECTING;
longPressRecognizerPtr->gestureInfo_ = AceType::MakeRefPtr<GestureInfo>();
longPressRecognizerPtr->HandleOverdueDeadline(true);
EXPECT_EQ(longPressRecognizerPtr->disposal_, GestureDisposal::REJECT);