!34571 安全控件测试用例适配

Merge pull request !34571 from Harylee/master
This commit is contained in:
openharmony_ci 2024-06-04 10:52:14 +00:00 committed by Gitee
commit f9823d6cf3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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);
}