From bbcce56ab12e5aab594d0a526f5706ef5bf6cde0 Mon Sep 17 00:00:00 2001 From: YueBiang Date: Fri, 11 Jun 2021 16:40:20 +0800 Subject: [PATCH] delete use cases for UIScrollView Signed-off-by: YueBiang --- .../src/ui_scroll_view_test.cpp | 35 +++---------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/graphic_lite/ui/ui_scroll_view_posix/src/ui_scroll_view_test.cpp b/graphic_lite/ui/ui_scroll_view_posix/src/ui_scroll_view_test.cpp index d88713c50..5b9a32dc7 100755 --- a/graphic_lite/ui/ui_scroll_view_posix/src/ui_scroll_view_test.cpp +++ b/graphic_lite/ui/ui_scroll_view_posix/src/ui_scroll_view_test.cpp @@ -102,25 +102,11 @@ HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_ScrollBy_0500, Function | } /** - * @tc.number SUB_GRAPHIC_SCROLL_VIEW_SETSCROLLBARWIDTH_0600 + * @tc.number SUB_GRAPHIC_SCROLL_VIEW_SETXSCROLLBARVISIBLE_0600 * @tc.name test scroll-view set-vertical-scroll-state api * @tc.desc [C- SOFTWARE -0200] */ -HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetScrollbarWidth_0600, Function | MediumTest | Level0) -{ - UIScrollView *scrollView = new UIScrollView(); - uint8_t width = 0; - scrollView->SetScrollbarWidth(width); - EXPECT_EQ(0, 0); - delete scrollView; -} - -/** - * @tc.number SUB_GRAPHIC_SCROLL_VIEW_SETXSCROLLBARVISIBLE_0700 - * @tc.name test scroll-view set-vertical-scroll-state api - * @tc.desc [C- SOFTWARE -0200] - */ -HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetXScrollBarVisible_0700, Function | MediumTest | Level0) +HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetXScrollBarVisible_0600, Function | MediumTest | Level0) { UIScrollView *scrollView = new UIScrollView(); bool state = false; @@ -130,11 +116,11 @@ HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetXScrollBarVisible_0700 } /** - * @tc.number SUB_GRAPHIC_SCROLL_VIEW_SETYSCROLLBARVISIBLE_0800 + * @tc.number SUB_GRAPHIC_SCROLL_VIEW_SETYSCROLLBARVISIBLE_0700 * @tc.name test scroll-view set-vertical-scroll-state api * @tc.desc [C- SOFTWARE -0200] */ -HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetYScrollBarVisible_0800, Function | MediumTest | Level0) +HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetYScrollBarVisible_0700, Function | MediumTest | Level0) { UIScrollView *scrollView = new UIScrollView(); bool state = false; @@ -142,17 +128,4 @@ HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_SetYScrollBarVisible_0800 EXPECT_EQ(0, 0); delete scrollView; } - -/** - * @tc.number SUB_GRAPHIC_SCROLL_VIEW_REFRESHSCROLLBAR_0900 - * @tc.name test scroll-view set-vertical-scroll-state api - * @tc.desc [C- SOFTWARE -0200] - */ -HWTEST_F(ScrollViewTest, Graphic_UIScrollViewTest_Test_RefreshScrollBar_0900, Function | MediumTest | Level0) -{ - UIScrollView *scrollView = new UIScrollView(); - scrollView->RefreshScrollBar(); - EXPECT_EQ(0, 0); - delete scrollView; -} } \ No newline at end of file -- GitLab