!44945 【轻量级 PR】:修改layout_wrapper测试用例

Merge pull request !44945 from Winstonffgg/N/A
This commit is contained in:
openharmony_ci 2024-10-08 02:15:11 +00:00 committed by Gitee
commit d34d17c447
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -766,6 +766,7 @@ HWTEST_F(LayoutWrapperTestTwoNg, LayoutWrapperTest015, TestSize.Level1)
safeAreamanager->SetIsAtomicService(true);
pipeline->safeAreaManager_ = safeAreamanager;
node->SetActive(true);
EXPECT_TRUE(layoutWrapper->AvoidKeyboard());
EXPECT_FALSE(layoutWrapper->AvoidKeyboard(false));
EXPECT_TRUE(node->GetFocusHub());
@ -963,6 +964,7 @@ HWTEST_F(LayoutWrapperTestTwoNg, LayoutWrapperTest021, TestSize.Level1)
safeAreamanager->SetIsAtomicService(true);
pipeline->safeAreaManager_ = safeAreamanager;
node->SetActive(true);
EXPECT_TRUE(layoutWrapper->AvoidKeyboard());
EXPECT_FALSE(layoutWrapper->AvoidKeyboard(false));
EXPECT_TRUE(LessNotEqual(safeAreamanager->GetKeyboardOffset(), 0.0));