提交 0c656fcf 编写于 作者: R root

fix slider

Change-Id: I352e77e63843a8db6ad9d8fa4d2dd1aa5a3eb161
上级 9abb689a
...@@ -75,21 +75,8 @@ HWTEST_F(UISliderTest, Graphic_UISliderTest_Test_SetImage_0400, Function | Mediu ...@@ -75,21 +75,8 @@ HWTEST_F(UISliderTest, Graphic_UISliderTest_Test_SetImage_0400, Function | Mediu
UISlider* slider = new UISlider(); UISlider* slider = new UISlider();
ImageInfo* backgroundImage = nullptr; ImageInfo* backgroundImage = nullptr;
ImageInfo* foregroundImage = nullptr; ImageInfo* foregroundImage = nullptr;
ImageInfo* knobImage = nullptr; slider->SetImage(backgroundImage, foregroundImage);
slider->SetImage(backgroundImage, foregroundImage, knobImage);
EXPECT_EQ(0, 0); EXPECT_EQ(0, 0);
delete backgroundImage;
delete foregroundImage;
char* chBackgroundImage = nullptr;
char* chForegroundImage = nullptr;
char* chKnobImage = nullptr;
slider->SetImage(chBackgroundImage, chForegroundImage, chKnobImage);
EXPECT_EQ(0, 0);
delete slider;
delete chBackgroundImage;
delete chForegroundImage;
delete chKnobImage;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册