feat: fix test for security component

Signed-off-by: Haryslee <lihao189@huawei.com>
This commit is contained in:
Haryslee 2024-05-31 22:31:12 +08:00
parent 35dbe281c6
commit a3f01aa9a2
2 changed files with 7 additions and 7 deletions

View File

@ -143,13 +143,13 @@ RefPtr<FrameNode> SecurityComponentModelTestNg::CreateSecurityComponent(int32_t
{
if (type == V2::LOCATION_BUTTON_ETS_TAG) {
LocationButtonModelNG locationSc;
locationSc.Create(text, icon, backgroundType);
locationSc.Create(text, icon, backgroundType, false);
} else if (type == V2::PASTE_BUTTON_ETS_TAG) {
PasteButtonModelNG pasteSc;
pasteSc.Create(text, icon, backgroundType);
pasteSc.Create(text, icon, backgroundType, false);
} else if (type == V2::SAVE_BUTTON_ETS_TAG) {
SaveButtonModelNG saveSc;
saveSc.Create(text, icon, backgroundType);
saveSc.Create(text, icon, backgroundType, false);
}
RefPtr<UINode> element = ViewStackProcessor::GetInstance()->Finish();
return AceType::DynamicCast<FrameNode>(element);
@ -160,13 +160,13 @@ void SecurityComponentModelTestNg::CreateSecurityComponentNotFinish(int32_t text
{
if (type == V2::LOCATION_BUTTON_ETS_TAG) {
LocationButtonModelNG locationSc;
locationSc.Create(text, icon, backgroundType);
locationSc.Create(text, icon, backgroundType, false);
} else if (type == V2::PASTE_BUTTON_ETS_TAG) {
PasteButtonModelNG pasteSc;
pasteSc.Create(text, icon, backgroundType);
pasteSc.Create(text, icon, backgroundType, false);
} else if (type == V2::SAVE_BUTTON_ETS_TAG) {
SaveButtonModelNG saveSc;
saveSc.Create(text, icon, backgroundType);
saveSc.Create(text, icon, backgroundType, false);
}
}

View File

@ -495,7 +495,7 @@ HWTEST_F(SecurityComponentModelTestNg, SecurityComponentInitButtonInfo001, TestS
*/
HWTEST_F(SecurityComponentModelTestNg, PasteButtonModelNGCreateNode001, TestSize.Level1)
{
auto frameNode = PasteButtonModelNG::GetInstance()->CreateNode(0, 0, 0);
auto frameNode = PasteButtonModelNG::GetInstance()->CreateNode(0, 0, 0, false);
ASSERT_NE(frameNode, nullptr);
}