!47888 【webview】UT测试用例鼠标光标整改

Merge pull request !47888 from 虞仕浩/master
This commit is contained in:
openharmony_ci 2024-11-13 08:38:41 +00:00 committed by Gitee
commit 5383a118e5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -647,7 +647,7 @@ HWTEST_F(WebPatternMethodTestNg, OnCursorChange_003, TestSize.Level1)
auto info = std::make_shared<NWebCursorInfoTestImpl>();
ASSERT_NE(info, nullptr);
OHOS::NWeb::CursorType type = OHOS::NWeb::CursorType::CT_CONTEXTMENU;
webPattern->isHoverExit_ = true;
webPattern->isHoverExit_ = false;
auto mouseStyle = MouseStyle::CreateMouseStyle();
auto mockMouseStyle = AceType::DynamicCast<MockMouseStyle>(mouseStyle);
EXPECT_CALL(*mockMouseStyle, GetPointerStyle(::testing::_, ::testing::_)).WillOnce(Return(0));
@ -708,7 +708,7 @@ HWTEST_F(WebPatternMethodTestNg, OnCursorChange_005, TestSize.Level1)
auto info = std::make_shared<NWebCursorInfoTestImpl>();
ASSERT_NE(info, nullptr);
OHOS::NWeb::CursorType type = OHOS::NWeb::CursorType::CT_CUSTOM;
webPattern->isHoverExit_ = true;
webPattern->isHoverExit_ = false;
auto mouseStyle = MouseStyle::CreateMouseStyle();
auto mockMouseStyle = AceType::DynamicCast<MockMouseStyle>(mouseStyle);
EXPECT_CALL(*mockMouseStyle, GetPointerStyle(::testing::_, ::testing::_)).WillOnce(Return(0));