update test/unittest/core/pattern/overlay/sheet_coverage_test_ng.cpp.

Signed-off-by: 189******51 <lipeicheng5@huawei.com>
This commit is contained in:
189******51 2024-08-14 11:55:34 +00:00 committed by Gitee
parent aa06672608
commit 9158a4bde5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -137,7 +137,6 @@ HWTEST_F(SheetCoverageTestNg, InitClickEvent001, TestSize.Level1)
ASSERT_NE(dragBarPattern, nullptr);
EXPECT_EQ(dragBarPattern->clickListener_, nullptr);
dragBarPattern->InitClickEvent();
EXPECT_NE(dragBarPattern->clickListener_, nullptr);
dragBarPattern->InitClickEvent();
@ -691,7 +690,7 @@ HWTEST_F(SheetCoverageTestNg, OnDirtyLayoutWrapperSwap001, TestSize.Level1)
EXPECT_TRUE(NearEqual(sheetPattern->sheetOffsetY_, sheetLayoutAlgorithm->GetSheetOffsetY()));
EXPECT_EQ(sheetPattern->GetSheetType(), SheetType::SHEET_POPUP);
sheetPattern->OnDirtyLayoutWrapperSwap(dirty, config);
config.skipMeasure = true;
config.skipLayout = false;
sheetPattern->sheetOffsetY_ = sheetLayoutAlgorithm->sheetOffsetY_ + 1.0f;
@ -921,7 +920,7 @@ HWTEST_F(SheetCoverageTestNg, GetSheetTypeWithAuto001, TestSize.Level1)
SheetType sheetType;
sheetPattern->GetSheetTypeWithAuto(sheetType);
EXPECT_EQ(sheetType, SheetType::SHEET_BOTTOM);
EXPECT_CALL(*foldablewindow, IsFoldExpand()).WillRepeatedly([]() -> bool { return true; });
auto sheetTheme = AceType::MakeRefPtr<SheetTheme>();
sheetTheme->sheetBottom_ = "bottom";