mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
update test/unittest/core/pattern/overlay/sheet_coverage_test_ng.cpp.
Signed-off-by: 189******51 <lipeicheng5@huawei.com>
This commit is contained in:
parent
aa06672608
commit
9158a4bde5
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user