diff --git a/graphic_lite/ui/ui_slider_posix/src/ui_slider_test.cpp b/graphic_lite/ui/ui_slider_posix/src/ui_slider_test.cpp index 07164a0145c30921cd8fb8b81a1e39f94008e8e4..4ae11a257ef6f850ad82b4f960ad993024ff151e 100755 --- a/graphic_lite/ui/ui_slider_posix/src/ui_slider_test.cpp +++ b/graphic_lite/ui/ui_slider_posix/src/ui_slider_test.cpp @@ -75,21 +75,8 @@ HWTEST_F(UISliderTest, Graphic_UISliderTest_Test_SetImage_0400, Function | Mediu UISlider* slider = new UISlider(); ImageInfo* backgroundImage = nullptr; ImageInfo* foregroundImage = nullptr; - ImageInfo* knobImage = nullptr; - slider->SetImage(backgroundImage, foregroundImage, knobImage); + slider->SetImage(backgroundImage, foregroundImage); 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; } /**