From 0c656fcf90be94de8fd983d5e6bf54d51e842b24 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Apr 2021 14:46:26 +0800 Subject: [PATCH] fix slider Change-Id: I352e77e63843a8db6ad9d8fa4d2dd1aa5a3eb161 --- .../ui/ui_slider_posix/src/ui_slider_test.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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 07164a014..4ae11a257 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; } /** -- GitLab