tdd测试修复

Signed-off-by: yangziyong <nsyangziyong@huawei.com>
Change-Id: I1575300948cd9cb7e10401d0c22ad37acede64b4
This commit is contained in:
yangziyong 2024-06-13 20:30:45 +08:00
parent 209cd356c3
commit 8043cc91be

View File

@ -4032,7 +4032,7 @@ HWTEST_F(SelectOverlayTestNg, ShowCamera001, TestSize.Level1)
EXPECT_NE(selectOverlayNode->backButton_, nullptr);
float maxWidth = 8.0f;
float allocatedSize = 7.0f;
float allocatedSize = 14.0f;
auto ret = selectOverlayNode->ShowCamera(maxWidth, allocatedSize, infoPtr);
EXPECT_TRUE(ret);
}
@ -4059,8 +4059,8 @@ HWTEST_F(SelectOverlayTestNg, ShowCamera002, TestSize.Level1)
ElementRegister::GetInstance()->MakeUniqueId(), []() { return AceType::MakeRefPtr<ButtonPattern>(); });
EXPECT_NE(selectOverlayNode->backButton_, nullptr);
float maxWidth = 80.0f;
float allocatedSize = 4.0f;
float maxWidth = 8.0f;
float allocatedSize = 11.0f;
auto ret = selectOverlayNode->ShowCamera(maxWidth, allocatedSize, infoPtr);
EXPECT_TRUE(ret);
}