mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-01-08 09:53:20 +00:00
commit
f9823d6cf3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user