提交 570f9951 编写于 作者: C chenjiafeng

Description: 修改 ui_view_group_unit_test 和 ui_view_unit_test

文件的断言
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6R7U5
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: Nchenjiafeng <chenjiafeng10@huawei.com>
上级 7fe8711c
......@@ -169,11 +169,7 @@ HWTEST_F(UIViewGroupTest, Graphic_UIView_Test_GetChildrenRenderHead_001, TestSiz
{
UIViewGroup* viewGroup = new UIViewGroup();
UIView* sibling = viewGroup->GetChildrenRenderHead();
if (sibling != nullptr) {
EXPECT_NE(0, 0);
return;
}
EXPECT_EQ(0, 0);
EXPECT_EQ(sibling, nullptr);
delete viewGroup;
}
......
......@@ -1193,19 +1193,11 @@ HWTEST_F(UIViewTest, Graphic_UIView_Test_GetNextRenderSibling_001, TestSize.Leve
{
UIView* view = new UIView();
UIView* sibling = view->GetNextRenderSibling();
if (sibling != nullptr) {
EXPECT_NE(0, 0);
return;
}
EXPECT_EQ(0, 0);
EXPECT_EQ(sibling, nullptr);
UIViewGroup* viewGroup = new UIViewGroup();
sibling = viewGroup->GetNextRenderSibling();
if (sibling != nullptr) {
EXPECT_NE(0, 0);
return;
}
EXPECT_EQ(0, 0);
EXPECT_EQ(sibling, nullptr);
delete view;
delete viewGroup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册