Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Graphic Ui
提交
b3974e19
G
Graphic Ui
项目概览
OpenHarmony
/
Graphic Ui
11 个月 前同步成功
通知
13
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Graphic Ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b3974e19
编写于
4月 15, 2021
作者:
O
openharmony_ci
提交者:
Gitee
4月 15, 2021
浏览文件
操作
浏览文件
下载
差异文件
!99 [Lightweight PR]: unittest level changc
Merge pull request !99 from 邓志豪/N/A
上级
98bd1910
c066db5a
变更
42
隐藏空白更改
内联
并排
Showing
42 changed file
with
211 addition
and
211 deletion
+211
-211
test/unittest/animator/animator_unit_test.cpp
test/unittest/animator/animator_unit_test.cpp
+6
-6
test/unittest/animator/easing_equation_unit_test.cpp
test/unittest/animator/easing_equation_unit_test.cpp
+1
-1
test/unittest/animator/interpolation_unit_test.cpp
test/unittest/animator/interpolation_unit_test.cpp
+1
-1
test/unittest/common/focus_manager_unit_test.cpp
test/unittest/common/focus_manager_unit_test.cpp
+2
-2
test/unittest/common/hardware_acceleration_unit_test.cpp
test/unittest/common/hardware_acceleration_unit_test.cpp
+3
-3
test/unittest/common/screen_unit_test.cpp
test/unittest/common/screen_unit_test.cpp
+2
-2
test/unittest/common/text_unit_test.cpp
test/unittest/common/text_unit_test.cpp
+2
-2
test/unittest/components/ui_abstract_progress_unit_test.cpp
test/unittest/components/ui_abstract_progress_unit_test.cpp
+6
-6
test/unittest/components/ui_analog_clock_unit_test.cpp
test/unittest/components/ui_analog_clock_unit_test.cpp
+5
-5
test/unittest/components/ui_arc_label_unit_test.cpp
test/unittest/components/ui_arc_label_unit_test.cpp
+9
-9
test/unittest/components/ui_axis_unit_test.cpp
test/unittest/components/ui_axis_unit_test.cpp
+5
-5
test/unittest/components/ui_box_progress_unit_test.cpp
test/unittest/components/ui_box_progress_unit_test.cpp
+6
-6
test/unittest/components/ui_button_unit_test.cpp
test/unittest/components/ui_button_unit_test.cpp
+9
-9
test/unittest/components/ui_canvas_unit_test.cpp
test/unittest/components/ui_canvas_unit_test.cpp
+10
-10
test/unittest/components/ui_chart_unit_test.cpp
test/unittest/components/ui_chart_unit_test.cpp
+12
-12
test/unittest/components/ui_checkbox_unit_test.cpp
test/unittest/components/ui_checkbox_unit_test.cpp
+1
-1
test/unittest/components/ui_circle_progress_unit_test.cpp
test/unittest/components/ui_circle_progress_unit_test.cpp
+4
-4
test/unittest/components/ui_dialog_unit_test.cpp
test/unittest/components/ui_dialog_unit_test.cpp
+5
-5
test/unittest/components/ui_digital_clock_unit_test.cpp
test/unittest/components/ui_digital_clock_unit_test.cpp
+4
-4
test/unittest/components/ui_image_animator_unit_test.cpp
test/unittest/components/ui_image_animator_unit_test.cpp
+16
-16
test/unittest/components/ui_image_unit_test.cpp
test/unittest/components/ui_image_unit_test.cpp
+9
-9
test/unittest/components/ui_label_button_unit_test.cpp
test/unittest/components/ui_label_button_unit_test.cpp
+3
-3
test/unittest/components/ui_label_unit_test.cpp
test/unittest/components/ui_label_unit_test.cpp
+6
-6
test/unittest/components/ui_picker_unit_test.cpp
test/unittest/components/ui_picker_unit_test.cpp
+5
-5
test/unittest/components/ui_qrcode_unit_test.cpp
test/unittest/components/ui_qrcode_unit_test.cpp
+1
-1
test/unittest/components/ui_radio_button_unit_test.cpp
test/unittest/components/ui_radio_button_unit_test.cpp
+2
-2
test/unittest/components/ui_repeat_button_unit_test.cpp
test/unittest/components/ui_repeat_button_unit_test.cpp
+1
-1
test/unittest/components/ui_scroll_view_unit_test.cpp
test/unittest/components/ui_scroll_view_unit_test.cpp
+6
-6
test/unittest/components/ui_slider_unit_test.cpp
test/unittest/components/ui_slider_unit_test.cpp
+1
-1
test/unittest/components/ui_surface_view_unit_test.cpp
test/unittest/components/ui_surface_view_unit_test.cpp
+6
-6
test/unittest/components/ui_swipe_view_unit_test.cpp
test/unittest/components/ui_swipe_view_unit_test.cpp
+7
-7
test/unittest/components/ui_time_picker_unit_test.cpp
test/unittest/components/ui_time_picker_unit_test.cpp
+1
-1
test/unittest/components/ui_toggle_button_unit_test.cpp
test/unittest/components/ui_toggle_button_unit_test.cpp
+1
-1
test/unittest/components/ui_video_unit_test.cpp
test/unittest/components/ui_video_unit_test.cpp
+7
-7
test/unittest/components/ui_view_group_unit_test.cpp
test/unittest/components/ui_view_group_unit_test.cpp
+1
-1
test/unittest/components/ui_view_unit_test.cpp
test/unittest/components/ui_view_unit_test.cpp
+27
-27
test/unittest/events/drag_event_unit_test.cpp
test/unittest/events/drag_event_unit_test.cpp
+3
-3
test/unittest/events/event_bubble_unit_test.cpp
test/unittest/events/event_bubble_unit_test.cpp
+1
-1
test/unittest/events/event_unit_test.cpp
test/unittest/events/event_unit_test.cpp
+1
-1
test/unittest/events/key_event_unit_test.cpp
test/unittest/events/key_event_unit_test.cpp
+1
-1
test/unittest/font/ui_font_unit_test.cpp
test/unittest/font/ui_font_unit_test.cpp
+3
-3
test/unittest/rotate/ui_rotate_input_unit_test.cpp
test/unittest/rotate/ui_rotate_input_unit_test.cpp
+9
-9
未找到文件。
test/unittest/animator/animator_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -103,7 +103,7 @@ void AnimatorTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorGetState_001
,
TestSize
.
Level
0
)
HWTEST_F
(
AnimatorTest
,
AnimatorGetState_001
,
TestSize
.
Level
1
)
{
if
(
animator_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -125,7 +125,7 @@ HWTEST_F(AnimatorTest, AnimatorGetState_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorSetState_001
,
TestSize
.
Level
0
)
HWTEST_F
(
AnimatorTest
,
AnimatorSetState_001
,
TestSize
.
Level
1
)
{
if
(
animator_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -145,7 +145,7 @@ HWTEST_F(AnimatorTest, AnimatorSetState_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorSetTime_001
,
TestSize
.
Level
0
)
HWTEST_F
(
AnimatorTest
,
AnimatorSetTime_001
,
TestSize
.
Level
1
)
{
if
(
animator_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -161,7 +161,7 @@ HWTEST_F(AnimatorTest, AnimatorSetTime_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorSetRunTime_001
,
TestSize
.
Level
0
)
HWTEST_F
(
AnimatorTest
,
AnimatorSetRunTime_001
,
TestSize
.
Level
1
)
{
if
(
animator_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -177,7 +177,7 @@ HWTEST_F(AnimatorTest, AnimatorSetRunTime_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorIsRepeat_001
,
TestSize
.
Level
0
)
HWTEST_F
(
AnimatorTest
,
AnimatorIsRepeat_001
,
TestSize
.
Level
1
)
{
if
(
animator_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -192,7 +192,7 @@ HWTEST_F(AnimatorTest, AnimatorIsRepeat_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
AnimatorTest
,
AnimatorManagerAddAndRemove_001
,
TestSize
.
Level
1
)
HWTEST_F
(
AnimatorTest
,
AnimatorManagerAddAndRemove_001
,
TestSize
.
Level
0
)
{
UIView
*
view
=
new
UIView
();
view
->
SetX
(
START_POS
);
...
...
test/unittest/animator/easing_equation_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -38,7 +38,7 @@ public:
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
EasingEquationTest
,
EasingEquationBackEaseIn_001
,
TestSize
.
Level
1
)
HWTEST_F
(
EasingEquationTest
,
EasingEquationBackEaseIn_001
,
TestSize
.
Level
0
)
{
const
double
overShoot
=
2
;
EasingEquation
::
SetBackOvershoot
(
overShoot
);
...
...
test/unittest/animator/interpolation_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -38,7 +38,7 @@ public:
* @tc.type: FUNC
* @tc.require: AR000DSMQM
*/
HWTEST_F
(
InterpolationTest
,
InterpolationGetBezierInterpolation_001
,
TestSize
.
Level
1
)
HWTEST_F
(
InterpolationTest
,
InterpolationGetBezierInterpolation_001
,
TestSize
.
Level
0
)
{
int16_t
ret
=
Interpolation
::
GetBezierInterpolation
(
200
,
U1
,
U2
,
U3
,
U4
);
// 200:current change rate;
EXPECT_EQ
(
ret
,
379
);
// 379:current change rate;
...
...
test/unittest/common/focus_manager_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -92,7 +92,7 @@ HWTEST_F(FocusManagerTest, GetFocusedView_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVI2R
*/
HWTEST_F
(
FocusManagerTest
,
RequestFocus_001
,
TestSize
.
Level
0
)
HWTEST_F
(
FocusManagerTest
,
RequestFocus_001
,
TestSize
.
Level
1
)
{
FocusManager
::
GetInstance
()
->
RequestFocus
(
label1_
);
UIView
*
focusedView
=
FocusManager
::
GetInstance
()
->
GetFocusedView
();
...
...
@@ -108,7 +108,7 @@ HWTEST_F(FocusManagerTest, RequestFocus_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVI2R
*/
HWTEST_F
(
FocusManagerTest
,
ClearFocus_001
,
TestSize
.
Level
0
)
HWTEST_F
(
FocusManagerTest
,
ClearFocus_001
,
TestSize
.
Level
1
)
{
FocusManager
::
GetInstance
()
->
RequestFocus
(
label1_
);
UIView
*
focusedView
=
FocusManager
::
GetInstance
()
->
GetFocusedView
();
...
...
test/unittest/common/hardware_acceleration_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -130,7 +130,7 @@ public:
* @tc.require: SR000ERCR6
*/
#if ENABLE_HARDWARE_ACCELERATION
HWTEST_F
(
HardwareAccelerationTest
,
HardwareFill_001
,
TestSize
.
Level
0
)
HWTEST_F
(
HardwareAccelerationTest
,
HardwareFill_001
,
TestSize
.
Level
1
)
{
RootView
*
rootView
=
RootView
::
GetInstance
();
rootView
->
SetWidth
(
600
);
// 600: width
...
...
@@ -186,7 +186,7 @@ HWTEST_F(HardwareAccelerationTest, HardwareBlend_001, TestSize.Level0)
* @tc.require: AR000EVI3I
*/
#if ENABLE_HARDWARE_ACCELERATION && ENABLE_HARDWARE_ACCELERATION_FOR_TEXT
HWTEST_F
(
HardwareAccelerationTest
,
HardwareBlend_002
,
TestSize
.
Level
0
)
HWTEST_F
(
HardwareAccelerationTest
,
HardwareBlend_002
,
TestSize
.
Level
1
)
{
RootView
*
rootView
=
RootView
::
GetInstance
();
rootView
->
SetWidth
(
600
);
// 600: width
...
...
@@ -256,7 +256,7 @@ HWTEST_F(HardwareAccelerationTest, HardwareTransform_001, TestSize.Level0)
* @tc.require: AR000EVI3I
*/
#if ENABLE_HARDWARE_ACCELERATION
HWTEST_F
(
HardwareAccelerationTest
,
HardwareTransform_002
,
TestSize
.
Level
0
)
HWTEST_F
(
HardwareAccelerationTest
,
HardwareTransform_002
,
TestSize
.
Level
1
)
{
// set device to null
ScreenDeviceProxy
::
GetInstance
()
->
SetDevice
(
nullptr
);
...
...
test/unittest/common/screen_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -32,7 +32,7 @@ public:
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
ScreenTest
,
ScreenGetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScreenTest
,
ScreenGetWidth_001
,
TestSize
.
Level
1
)
{
EXPECT_EQ
(
Screen
::
GetInstance
().
GetWidth
(),
HORIZONTAL_RESOLUTION
);
}
...
...
@@ -43,7 +43,7 @@ HWTEST_F(ScreenTest, ScreenGetWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ9
*/
HWTEST_F
(
ScreenTest
,
ScreenGetHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScreenTest
,
ScreenGetHeight_001
,
TestSize
.
Level
1
)
{
EXPECT_EQ
(
Screen
::
GetInstance
().
GetHeight
(),
VERTICAL_RESOLUTION
);
}
...
...
test/unittest/common/text_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -87,7 +87,7 @@ HWTEST_F(TextTest, TextSetDirect_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
TextTest
,
TextSetAlign_001
,
TestSize
.
Level
0
)
HWTEST_F
(
TextTest
,
TextSetAlign_001
,
TestSize
.
Level
1
)
{
if
(
text_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -105,7 +105,7 @@ HWTEST_F(TextTest, TextSetAlign_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
TextTest
,
TextSetExpand_001
,
TestSize
.
Level
0
)
HWTEST_F
(
TextTest
,
TextSetExpand_001
,
TestSize
.
Level
1
)
{
if
(
text_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_abstract_progress_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -64,7 +64,7 @@ void UIAbsatrctProgressTest::TearDown()
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -105,7 +105,7 @@ HWTEST_F(UIAbsatrctProgressTest, UIAbsatrctProgressSetValue_001, TestSize.Level0
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetValue_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetValue_002
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -126,7 +126,7 @@ HWTEST_F(UIAbsatrctProgressTest, UIAbsatrctProgressSetValue_002, TestSize.Level0
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetStep_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetStep_001
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -142,7 +142,7 @@ HWTEST_F(UIAbsatrctProgressTest, UIAbsatrctProgressSetStep_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetBackgroundStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetBackgroundStyle_001
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -168,7 +168,7 @@ HWTEST_F(UIAbsatrctProgressTest, UIAbsatrctProgressSetBackgroundStyle_001, TestS
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetForegroundStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetForegroundStyle_001
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -194,7 +194,7 @@ HWTEST_F(UIAbsatrctProgressTest, UIAbsatrctProgressSetForegroundStyle_001, TestS
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetCapType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAbsatrctProgressTest
,
UIAbsatrctProgressSetCapType_001
,
TestSize
.
Level
1
)
{
if
(
abstractProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_analog_clock_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -93,7 +93,7 @@ HWTEST_F(UIAnalogClockTest, UIAnalogClockSetPosition_001, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000EEMQA
*/
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetTime24Hour_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetTime24Hour_001
,
TestSize
.
Level
1
)
{
if
(
clock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -129,7 +129,7 @@ HWTEST_F(UIAnalogClockTest, UIAnalogClockSetTime12Hour_001, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000EEMQA
*/
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetTime12Hour_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetTime12Hour_002
,
TestSize
.
Level
1
)
{
if
(
clock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -147,7 +147,7 @@ HWTEST_F(UIAnalogClockTest, UIAnalogClockSetTime12Hour_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQA
*/
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetHandLine_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetHandLine_001
,
TestSize
.
Level
1
)
{
if
(
clock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -196,7 +196,7 @@ HWTEST_F(UIAnalogClockTest, UIAnalogClockSetInitTime24Hour_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQA
*/
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetInitTime12Hour_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetInitTime12Hour_001
,
TestSize
.
Level
1
)
{
if
(
clock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -216,7 +216,7 @@ HWTEST_F(UIAnalogClockTest, UIAnalogClockSetInitTime12Hour_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQA
*/
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetInitTime12Hour_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAnalogClockTest
,
UIAnalogClockSetInitTime12Hour_002
,
TestSize
.
Level
1
)
{
if
(
clock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_arc_label_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -49,7 +49,7 @@ void UIArcLabelTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -64,7 +64,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetWidth_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -81,7 +81,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelGetWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetHeight_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -98,7 +98,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelGetHeight_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetText_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetText_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -115,7 +115,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelSetText_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetAlign_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetAlign_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -132,7 +132,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelSetAlign_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextCenter_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextCenter_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -151,7 +151,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelSetArcTextCenter_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextRadius_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextRadius_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -186,7 +186,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelSetArcTextAngle_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextOrientation_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelSetArcTextOrientation_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -206,7 +206,7 @@ HWTEST_F(UIArcLabelTest, UIArcLabelSetArcTextOrientation_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPM
*/
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetDirect_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIArcLabelTest
,
UIArcLabelGetDirect_001
,
TestSize
.
Level
1
)
{
if
(
arcLabel_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_axis_unit_test.cpp
浏览文件 @
b3974e19
/*
/*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -77,7 +77,7 @@ HWTEST_F(UIAxisTest, UIAxisGetViewType_001, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIAxisTest
,
UIAxisSetLineColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAxisTest
,
UIAxisSetLineColor_001
,
TestSize
.
Level
1
)
{
if
(
axisY_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -108,7 +108,7 @@ HWTEST_F(UIAxisTest, UIXAxisSetDataRange_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIAxisTest
,
UIXAxisSetDataRange_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAxisTest
,
UIXAxisSetDataRange_002
,
TestSize
.
Level
1
)
{
if
(
axisX_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -123,7 +123,7 @@ HWTEST_F(UIAxisTest, UIXAxisSetDataRange_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIAxisTest
,
UIYAxisSetDataRange_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAxisTest
,
UIYAxisSetDataRange_001
,
TestSize
.
Level
1
)
{
if
(
axisY_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -138,7 +138,7 @@ HWTEST_F(UIAxisTest, UIYAxisSetDataRange_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIAxisTest
,
UIYAxisSetDataRange_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIAxisTest
,
UIYAxisSetDataRange_002
,
TestSize
.
Level
1
)
{
if
(
axisY_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_box_progress_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -67,7 +67,7 @@ void UIBoxProgressTest::TearDown()
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -108,7 +108,7 @@ HWTEST_F(UIBoxProgressTest, UIBoxProgressSetDirection_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValidWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValidWidth_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -127,7 +127,7 @@ HWTEST_F(UIBoxProgressTest, UIBoxProgressSetValidWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValidHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValidHeight_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -146,7 +146,7 @@ HWTEST_F(UIBoxProgressTest, UIBoxProgressSetValidHeight_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValue_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetValue_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -169,7 +169,7 @@ HWTEST_F(UIBoxProgressTest, UIBoxProgressSetValue_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetWidth_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -187,7 +187,7 @@ HWTEST_F(UIBoxProgressTest, UIBoxProgressSetWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIBoxProgressTest
,
UIBoxProgressSetHeight_001
,
TestSize
.
Level
1
)
{
if
(
boxProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_button_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -101,7 +101,7 @@ HWTEST_F(UIButtonTest, UIButtonSetImageSrc_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetImagePosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetImagePosition_001
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -118,7 +118,7 @@ HWTEST_F(UIButtonTest, UIButtonSetImagePosition_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_001
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -136,7 +136,7 @@ HWTEST_F(UIButtonTest, UIButtonSetStyle_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_002
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -154,7 +154,7 @@ HWTEST_F(UIButtonTest, UIButtonSetStyle_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyle_003
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -172,7 +172,7 @@ HWTEST_F(UIButtonTest, UIButtonSetStyle_003, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonIsTouchable_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonIsTouchable_001
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -226,7 +226,7 @@ button_->SetPosition(posX, posY);
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetSize_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetSize_002
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -262,7 +262,7 @@ HWTEST_F(UIButtonTest, UIButtonSetSize_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetSize_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetSize_003
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -297,7 +297,7 @@ HWTEST_F(UIButtonTest, UIButtonSetSize_003, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyleForState_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetStyleForState_001
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -320,7 +320,7 @@ HWTEST_F(UIButtonTest, UIButtonSetStyleForState_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIButtonTest
,
UIButtonSetStateForStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIButtonTest
,
UIButtonSetStateForStyle_001
,
TestSize
.
Level
1
)
{
if
(
button_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_canvas_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -131,7 +131,7 @@ HWTEST_F(UICanvasTest, UICanvasSetPaintStyle_001, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UICanvasTest
,
UICanvasSetStrokeWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasSetStrokeWidth_001
,
TestSize
.
Level
1
)
{
if
(
paint_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -147,7 +147,7 @@ HWTEST_F(UICanvasTest, UICanvasSetStrokeWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UICanvasTest
,
UICanvasSetStrokeColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasSetStrokeColor_001
,
TestSize
.
Level
1
)
{
if
(
paint_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -165,7 +165,7 @@ HWTEST_F(UICanvasTest, UICanvasSetStrokeColor_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UICanvasTest
,
UICanvasSetFillColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasSetFillColor_001
,
TestSize
.
Level
1
)
{
if
(
paint_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -183,7 +183,7 @@ HWTEST_F(UICanvasTest, UICanvasSetFillColor_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UICanvasTest
,
UICanvasSetOpacity_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasSetOpacity_001
,
TestSize
.
Level
1
)
{
if
(
paint_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -199,7 +199,7 @@ HWTEST_F(UICanvasTest, UICanvasSetOpacity_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UICanvasTest
,
UICanvasSetStartPosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasSetStartPosition_001
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -338,7 +338,7 @@ HWTEST_F(UICanvasTest, UICanvasLineTo_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVN8V
*/
HWTEST_F
(
UICanvasTest
,
UICanvasLineTo_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasLineTo_002
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -395,7 +395,7 @@ HWTEST_F(UICanvasTest, UICanvasArcTo_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVN8V
*/
HWTEST_F
(
UICanvasTest
,
UICanvasArcTo_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasArcTo_002
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -423,7 +423,7 @@ HWTEST_F(UICanvasTest, UICanvasArcTo_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVN8V
*/
HWTEST_F
(
UICanvasTest
,
UICanvasArcTo_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasArcTo_003
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -474,7 +474,7 @@ HWTEST_F(UICanvasTest, UICanvasAddRect_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVN8V
*/
HWTEST_F
(
UICanvasTest
,
UICanvasAddRect_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasAddRect_002
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -526,7 +526,7 @@ HWTEST_F(UICanvasTest, UICanvasClosePath_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000EVN8R
*/
HWTEST_F
(
UICanvasTest
,
UICanvasClosePath_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UICanvasTest
,
UICanvasClosePath_002
,
TestSize
.
Level
1
)
{
if
(
canvas_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_chart_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -76,7 +76,7 @@ void InitPointStyle(UIChartDataSerial::PointStyle& pointStyle)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetMaxDataCount_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetMaxDataCount_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -91,7 +91,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialSetMaxDataCount_001, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialAddPoints_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialAddPoints_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -160,7 +160,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialModifyPoint_001, TestSize.Level
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialClearData_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialClearData_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -181,7 +181,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialClearData_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetDataCount_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetDataCount_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -255,7 +255,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialGetPeakIndex_001, TestSize.Leve
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetValleyIndex_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetValleyIndex_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -273,7 +273,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialGetValleyIndex_001, TestSize.Le
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetLatestIndex_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialGetLatestIndex_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -312,7 +312,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialSetLastPointIndex_001, TestSize
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetLineColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetLineColor_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -329,7 +329,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialSetLineColor_001, TestSize.Leve
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetFillColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialSetFillColor_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -346,7 +346,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialSetFillColor_001, TestSize.Leve
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialHidePoint_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDataSerialHidePoint_001
,
TestSize
.
Level
1
)
{
if
(
chartDataSerial_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -434,7 +434,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDataSerialSetBottomPointStyle_001, TestSi
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartAddDataSerial_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartAddDataSerial_001
,
TestSize
.
Level
1
)
{
if
(
chart_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -454,7 +454,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartAddDataSerial_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDeleteDataSerial_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartDeleteDataSerial_001
,
TestSize
.
Level
1
)
{
if
(
chart_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -476,7 +476,7 @@ HWTEST_F(UIChartDataSerialTest, UIChartDeleteDataSerial_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UIChartDataSerialTest
,
UIChartClearDataSerial_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIChartDataSerialTest
,
UIChartClearDataSerial_001
,
TestSize
.
Level
1
)
{
if
(
chart_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_checkbox_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -66,7 +66,7 @@ HWTEST_F(UICheckBoxTest, UICheckBoxGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ8
*/
HWTEST_F
(
UICheckBoxTest
,
UICheckBoxOnClickEvent_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICheckBoxTest
,
UICheckBoxOnClickEvent_001
,
TestSize
.
Level
1
)
{
if
(
checkBox_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_circle_progress_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -54,7 +54,7 @@ void UICircleProgressTest::TearDownTestCase()
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
circleProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -69,7 +69,7 @@ HWTEST_F(UICircleProgressTest, UICircleProgressGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetRadius_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetRadius_001
,
TestSize
.
Level
1
)
{
if
(
circleProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -87,7 +87,7 @@ HWTEST_F(UICircleProgressTest, UICircleProgressSetRadius_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetCenterPosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetCenterPosition_001
,
TestSize
.
Level
1
)
{
if
(
circleProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -109,7 +109,7 @@ HWTEST_F(UICircleProgressTest, UICircleProgressSetCenterPosition_001, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000DSMQG
*/
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetLineColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UICircleProgressTest
,
UICircleProgressSetLineColor_001
,
TestSize
.
Level
1
)
{
if
(
circleProgress_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_dialog_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -94,7 +94,7 @@ HWTEST_F(UIDialogTest, UIDialogSetTitle_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5F
*/
HWTEST_F
(
UIDialogTest
,
UIDialogSetTitle_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDialogTest
,
UIDialogSetTitle_002
,
TestSize
.
Level
1
)
{
dialog_
->
SetTitle
(
nullptr
);
EXPECT_EQ
(
dialog_
->
GetTitle
(),
nullptr
);
...
...
@@ -126,7 +126,7 @@ HWTEST_F(UIDialogTest, UIDialogSetText_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5F
*/
HWTEST_F
(
UIDialogTest
,
UIDialogSetText_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDialogTest
,
UIDialogSetText_002
,
TestSize
.
Level
1
)
{
dialog_
->
SetText
(
nullptr
);
EXPECT_EQ
(
dialog_
->
GetText
(),
nullptr
);
...
...
@@ -160,7 +160,7 @@ HWTEST_F(UIDialogTest, UIDialogSetButton_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5F
*/
HWTEST_F
(
UIDialogTest
,
UIDialogSetButtonColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDialogTest
,
UIDialogSetButtonColor_001
,
TestSize
.
Level
1
)
{
dialog_
->
SetButton
(
UIDialog
::
DialogButtonType
::
BUTTON_LEFT
,
"button"
,
listener_
);
ColorType
color
=
Color
::
Red
();
...
...
@@ -174,7 +174,7 @@ HWTEST_F(UIDialogTest, UIDialogSetButtonColor_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5F
*/
HWTEST_F
(
UIDialogTest
,
UIDialogSetOnCancelListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDialogTest
,
UIDialogSetOnCancelListener_001
,
TestSize
.
Level
1
)
{
dialog_
->
SetOnCancelListener
(
nullptr
);
EXPECT_EQ
(
dialog_
->
GetOnCancelListener
(),
nullptr
);
...
...
@@ -188,7 +188,7 @@ HWTEST_F(UIDialogTest, UIDialogSetOnCancelListener_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5F
*/
HWTEST_F
(
UIDialogTest
,
UIDialogEnableAutoCancel_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDialogTest
,
UIDialogEnableAutoCancel_001
,
TestSize
.
Level
1
)
{
dialog_
->
EnableAutoCancel
(
true
);
EXPECT_EQ
(
dialog_
->
GetEnableAutoCancel
(),
true
);
...
...
test/unittest/components/ui_digital_clock_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -111,7 +111,7 @@ HWTEST_F(UIDigitalClockTest, UIDigitalClockSetDisplayMode_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ4
*/
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetOpacity_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetOpacity_001
,
TestSize
.
Level
1
)
{
if
(
digitalClock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -127,7 +127,7 @@ HWTEST_F(UIDigitalClockTest, UIDigitalClockSetOpacity_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ4
*/
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime24Hour_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime24Hour_001
,
TestSize
.
Level
1
)
{
if
(
digitalClock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -145,7 +145,7 @@ HWTEST_F(UIDigitalClockTest, UIDigitalClockSetTime24Hour_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ4
*/
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime12Hour_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime12Hour_001
,
TestSize
.
Level
1
)
{
if
(
digitalClock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -163,7 +163,7 @@ HWTEST_F(UIDigitalClockTest, UIDigitalClockSetTime12Hour_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ4
*/
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime12Hour_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIDigitalClockTest
,
UIDigitalClockSetTime12Hour_002
,
TestSize
.
Level
1
)
{
if
(
digitalClock_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_image_animator_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -65,7 +65,7 @@ static ImageAnimatorInfo g_imageAnimatorInfo[IMAGE_SIZE] = {
* @tc.type: FUNC
* @tc.require: AR000DSMQL
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -80,7 +80,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewGetViewType_001, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000DSMQL
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetTimeOfPause_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetTimeOfPause_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -98,7 +98,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetTimeOfPause_001, TestSiz
* @tc.type: FUNC
* @tc.require: AR000DSMQL
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetTimeOfUpdate_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetTimeOfUpdate_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -116,7 +116,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetTimeOfUpdate_001, TestSi
* @tc.type: FUNC
* @tc.require: AR000DSMQL
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetImageAnimatorSrc_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetImageAnimatorSrc_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -134,7 +134,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetImageAnimatorSrc_001, Te
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetImageAnimatorSrc_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetImageAnimatorSrc_002
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -152,7 +152,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetImageAnimatorSrc_002, Te
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetSizeFixed_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetSizeFixed_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -170,7 +170,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetSizeFixed_001, TestSize.
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetRepeat_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetRepeat_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -188,7 +188,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetRepeat_001, TestSize.Lev
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetReverse_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetReverse_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -206,7 +206,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetReverse_001, TestSize.Le
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetStartPosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetStartPosition_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -223,7 +223,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetStartPosition_001, TestS
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewStart_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewStart_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -239,7 +239,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewStart_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewStop_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewStop_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -255,7 +255,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewStop_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewPause_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewPause_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -271,7 +271,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewPause_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMPV
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewResume_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewResume_001
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -308,7 +308,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetFillMode_001, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000F4E5J
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_002
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -329,7 +329,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetFillMode_002, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000F4E5J
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_003
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -350,7 +350,7 @@ HWTEST_F(UIImageAnimatorViewTest, UIImageAnimatorViewSetFillMode_003, TestSize.L
* @tc.type: FUNC
* @tc.require: AR000F4E5J
*/
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_004
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageAnimatorViewTest
,
UIImageAnimatorViewSetFillMode_004
,
TestSize
.
Level
1
)
{
if
(
imageAnimator_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_image_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -55,7 +55,7 @@ void UIImageViewTest::TearDown(void)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -104,7 +104,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetPosition_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000F3PEO
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -121,7 +121,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetSrc_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F3R70
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_002
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -138,7 +138,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetSrc_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F3R70
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetSrc_003
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -179,7 +179,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetSrc_004, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetAutoEnable_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetAutoEnable_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -195,7 +195,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetAutoEnable_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetParent_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetParent_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -214,7 +214,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetParent_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetNextSibling_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetNextSibling_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -233,7 +233,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetNextSibling_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetVisible_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetVisible_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -251,7 +251,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetVisible_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetTouchable_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIImageViewTest
,
UIImageViewSetTouchable_001
,
TestSize
.
Level
1
)
{
if
(
imageView_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_label_button_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -87,7 +87,7 @@ HWTEST_F(UILabelButtonTest, UILabelButtonSetText_001, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000EEMQ5
*/
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetLablePosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetLablePosition_001
,
TestSize
.
Level
1
)
{
if
(
labelBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -139,7 +139,7 @@ HWTEST_F(UILabelButtonTest, UILabelButtonSetDirect_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ5
*/
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetLabelStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetLabelStyle_001
,
TestSize
.
Level
1
)
{
if
(
labelBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -174,7 +174,7 @@ HWTEST_F(UILabelButtonTest, UILabelButtonSetLabelStyle_002, TestSize.Level1)
* @tc.type: FUNC
* @tc.require: AR000EEMQ5
*/
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetTextColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelButtonTest
,
UILabelButtonSetTextColor_001
,
TestSize
.
Level
1
)
{
if
(
labelBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_label_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -55,7 +55,7 @@ void UILabelTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -70,7 +70,7 @@ HWTEST_F(UILabelTest, UILabelGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelResize_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelResize_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -87,7 +87,7 @@ HWTEST_F(UILabelTest, UILabelResize_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelSetText_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelSetText_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -126,7 +126,7 @@ HWTEST_F(UILabelTest, UILabelSetLineBreakMode_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelSetTextColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelSetTextColor_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -177,7 +177,7 @@ HWTEST_F(UILabelTest, UILabelSetAlign_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelSetDirect_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelSetDirect_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -211,7 +211,7 @@ HWTEST_F(UILabelTest, UILabelSetRollStartPos_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQ1
*/
HWTEST_F
(
UILabelTest
,
UILabelSetFont_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UILabelTest
,
UILabelSetFont_001
,
TestSize
.
Level
1
)
{
if
(
label_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_picker_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -50,7 +50,7 @@ void UIPickerTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000EEMQ6
*/
HWTEST_F
(
UIPickerTest
,
UIPickerGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIPickerTest
,
UIPickerGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
picker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -65,7 +65,7 @@ HWTEST_F(UIPickerTest, UIPickerGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ6
*/
HWTEST_F
(
UIPickerTest
,
UIPickerGetHighlightFontId_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIPickerTest
,
UIPickerGetHighlightFontId_001
,
TestSize
.
Level
1
)
{
if
(
picker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -81,7 +81,7 @@ HWTEST_F(UIPickerTest, UIPickerGetHighlightFontId_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ6
*/
HWTEST_F
(
UIPickerTest
,
UIPickerSetFontId_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIPickerTest
,
UIPickerSetFontId_001
,
TestSize
.
Level
1
)
{
if
(
picker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -101,7 +101,7 @@ HWTEST_F(UIPickerTest, UIPickerSetFontId_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ6
*/
HWTEST_F
(
UIPickerTest
,
UIPickerSetTextColor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIPickerTest
,
UIPickerSetTextColor_001
,
TestSize
.
Level
1
)
{
if
(
picker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -123,7 +123,7 @@ HWTEST_F(UIPickerTest, UIPickerSetTextColor_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQ6
*/
HWTEST_F
(
UIPickerTest
,
UIPickerSetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIPickerTest
,
UIPickerSetWidth_001
,
TestSize
.
Level
1
)
{
if
(
picker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_qrcode_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -54,7 +54,7 @@ void UIQrcodeTest::TearDownTestCase()
* @tc.type: FUNC
* @tc.require: AR000F4E5M
*/
HWTEST_F
(
UIQrcodeTest
,
Graphic_UIQrcodeTest_Test_GetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIQrcodeTest
,
Graphic_UIQrcodeTest_Test_GetViewType_001
,
TestSize
.
Level
1
)
{
if
(
qrcode_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_radio_button_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -50,7 +50,7 @@ void UIRadioButtonTest::TearDownTestCase()
* @tc.type: FUNC
* @tc.require: AR000DSMQB
*/
HWTEST_F
(
UIRadioButtonTest
,
UIRadioButtonGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRadioButtonTest
,
UIRadioButtonGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
radioBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -65,7 +65,7 @@ HWTEST_F(UIRadioButtonTest, UIRadioButtonGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5I
*/
HWTEST_F
(
UIRadioButtonTest
,
UIRadioButtonGetName_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRadioButtonTest
,
UIRadioButtonGetName_001
,
TestSize
.
Level
1
)
{
if
(
radioBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_repeat_button_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -50,7 +50,7 @@ void UIRepeatButtonTest::TearDownTestCase()
* @tc.type: FUNC
* @tc.require: SR000DRSH1
*/
HWTEST_F
(
UIRepeatButtonTest
,
UIRepeatButtonTestGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRepeatButtonTest
,
UIRepeatButtonTestGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
repeatBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_scroll_view_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -76,7 +76,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewSetScrollState_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQE
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -91,7 +91,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000DSMQE
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetHorizontalScrollState_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetHorizontalScrollState_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -110,7 +110,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewSetHorizontalScrollState_001, TestSize.Leve
* @tc.type: FUNC
* @tc.require: AR000DSMQE
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetVerticalScrollState_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetVerticalScrollState_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -129,7 +129,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewSetVerticalScrollState_001, TestSize.Level0
* @tc.type: FUNC
* @tc.require: AR000E2RJK
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetMaxScrollDistance_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetMaxScrollDistance_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -146,7 +146,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewSetMaxScrollDistance_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000E2RJJ
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetDragACCLevel_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetDragACCLevel_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -163,7 +163,7 @@ HWTEST_F(ScrollViewTest, UIScrollViewSetDragACCLevel_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5P
*/
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetSwipeACCLevel_001
,
TestSize
.
Level
0
)
HWTEST_F
(
ScrollViewTest
,
UIScrollViewSetSwipeACCLevel_001
,
TestSize
.
Level
1
)
{
if
(
scrollView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_slider_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -49,7 +49,7 @@ void UISliderTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: NA
*/
HWTEST_F
(
UISliderTest
,
UISliderGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISliderTest
,
UISliderGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
slider_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_surface_view_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -89,7 +89,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewSetPosition_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewResize_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewResize_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -106,7 +106,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewResize_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetX_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetX_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -122,7 +122,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewSetX_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetY_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetY_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -138,7 +138,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewSetY_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetWidth_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -154,7 +154,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewSetWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetHeight_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -170,7 +170,7 @@ HWTEST_F(UISurfaceViewTest, UISurfaceViewSetHeight_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQJ
*/
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetVisible_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISurfaceViewTest
,
UISurfaceViewSetVisible_001
,
TestSize
.
Level
1
)
{
if
(
surface_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_swipe_view_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -57,7 +57,7 @@ void UISwipeViewTest::TearDown()
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -72,7 +72,7 @@ HWTEST_F(UISwipeViewTest, UISwipeViewGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewSetDirection_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewSetDirection_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -91,7 +91,7 @@ HWTEST_F(UISwipeViewTest, UISwipeViewSetDirection_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewAdd_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewAdd_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -115,7 +115,7 @@ HWTEST_F(UISwipeViewTest, UISwipeViewAdd_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewInsert_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewInsert_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -148,7 +148,7 @@ HWTEST_F(UISwipeViewTest, UISwipeViewInsert_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewRemove_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewRemove_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -241,7 +241,7 @@ public:
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewSetOnSwipeListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
UISwipeViewSetOnSwipeListener_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -304,7 +304,7 @@ HWTEST_F(UISwipeViewTest, UISwipeViewGetViewByIndex_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVTV4
*/
HWTEST_F
(
UISwipeViewTest
,
Graphic_UISwipeView_Test_SetAlignMode_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UISwipeViewTest
,
Graphic_UISwipeView_Test_SetAlignMode_001
,
TestSize
.
Level
1
)
{
if
(
swipeView_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_time_picker_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -48,7 +48,7 @@ void UITimePickerTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000EEMQ7
*/
HWTEST_F
(
UITimePickerTest
,
UITimePickerGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UITimePickerTest
,
UITimePickerGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
timePicker_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_toggle_button_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -50,7 +50,7 @@ void UIToggleButtonTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: AR000DSMQA
*/
HWTEST_F
(
UIToggleButtonTest
,
UIToggleButtonGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIToggleButtonTest
,
UIToggleButtonGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
toggleBtn_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/components/ui_video_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -115,7 +115,7 @@ void UIVideoTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: SR000F3PEN
*/
HWTEST_F
(
UIVideoTest
,
UIVideoSetSrc_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoSetSrc_001
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -139,7 +139,7 @@ HWTEST_F(UIVideoTest, UIVideoSetSrc_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoSetSrc_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoSetSrc_002
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -159,7 +159,7 @@ HWTEST_F(UIVideoTest, UIVideoSetSrc_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoPrepare_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoPrepare_001
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -181,7 +181,7 @@ HWTEST_F(UIVideoTest, UIVideoPrepare_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoPrepare_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoPrepare_002
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -208,7 +208,7 @@ HWTEST_F(UIVideoTest, UIVideoPrepare_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoPlay_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoPlay_001
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -269,7 +269,7 @@ HWTEST_F(UIVideoTest, UIVideoPlay_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoIsPlaying_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoIsPlaying_001
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
@@ -295,7 +295,7 @@ HWTEST_F(UIVideoTest, UIVideoIsPlaying_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5Q
*/
HWTEST_F
(
UIVideoTest
,
UIVideoIsSingleLooping_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIVideoTest
,
UIVideoIsSingleLooping_001
,
TestSize
.
Level
1
)
{
if
(
video_
==
nullptr
)
{
video_
=
new
UIVideo
();
...
...
test/unittest/components/ui_view_group_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -150,7 +150,7 @@ HWTEST_F(UIViewGroupTest, UIViewGroupRemoveAll_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewGroupTest
,
UIViewGroupGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewGroupTest
,
UIViewGroupGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
viewGroup_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/components/ui_view_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -74,7 +74,7 @@ void UIViewTest::TearDown()
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOnDragListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOnDragListener_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -92,7 +92,7 @@ HWTEST_F(UIViewTest, UIViewSetOnDragListener_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOnClickListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOnClickListener_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -110,7 +110,7 @@ HWTEST_F(UIViewTest, UIViewSetOnClickListener_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOnLongPressListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOnLongPressListener_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -128,7 +128,7 @@ HWTEST_F(UIViewTest, UIViewSetOnLongPressListener_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOnTouchListener_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOnTouchListener_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -146,7 +146,7 @@ HWTEST_F(UIViewTest, UIViewSetOnTouchListener_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetParent_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetParent_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -169,7 +169,7 @@ HWTEST_F(UIViewTest, UIViewSetParent_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetNextSibling_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetNextSibling_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -192,7 +192,7 @@ HWTEST_F(UIViewTest, UIViewSetNextSibling_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetVisible_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetVisible_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -208,7 +208,7 @@ HWTEST_F(UIViewTest, UIViewSetVisible_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetTouchable_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetTouchable_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -224,7 +224,7 @@ HWTEST_F(UIViewTest, UIViewSetTouchable_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetDraggable_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetDraggable_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -240,7 +240,7 @@ HWTEST_F(UIViewTest, UIViewSetDraggable_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetDragParentInstead_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetDragParentInstead_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -256,7 +256,7 @@ HWTEST_F(UIViewTest, UIViewSetDragParentInstead_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewResizeVisibleArea_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewResizeVisibleArea_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -274,7 +274,7 @@ HWTEST_F(UIViewTest, UIViewResizeVisibleArea_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetWidth_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetWidth_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -292,7 +292,7 @@ HWTEST_F(UIViewTest, UIViewSetWidth_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetHeight_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetHeight_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -310,7 +310,7 @@ HWTEST_F(UIViewTest, UIViewSetHeight_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewResize_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewResize_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -330,7 +330,7 @@ HWTEST_F(UIViewTest, UIViewResize_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetX_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetX_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -348,7 +348,7 @@ HWTEST_F(UIViewTest, UIViewSetX_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetY_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetY_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -366,7 +366,7 @@ HWTEST_F(UIViewTest, UIViewSetY_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetPosition_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetPosition_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -386,7 +386,7 @@ HWTEST_F(UIViewTest, UIViewSetPosition_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetPosition_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetPosition_002
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -729,7 +729,7 @@ HWTEST_F(UIViewTest, UIViewSetPositionPercent_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetViewId_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetViewId_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -747,7 +747,7 @@ HWTEST_F(UIViewTest, UIViewSetViewId_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetViewIndex_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetViewIndex_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -765,7 +765,7 @@ HWTEST_F(UIViewTest, UIViewSetViewIndex_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewGetViewType_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewGetViewType_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -780,7 +780,7 @@ HWTEST_F(UIViewTest, UIViewGetViewType_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5D
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOpaScale_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOpaScale_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -798,7 +798,7 @@ HWTEST_F(UIViewTest, UIViewSetOpaScale_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000F3PEB
*/
HWTEST_F
(
UIViewTest
,
UIViewSetOpaScale_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetOpaScale_002
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -818,7 +818,7 @@ HWTEST_F(UIViewTest, UIViewSetOpaScale_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EEMQF
*/
HWTEST_F
(
UIViewTest
,
UIViewSetStyle_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
UIViewSetStyle_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -965,7 +965,7 @@ HWTEST_F(UIViewTest, UIViewLayoutToSibling_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000F3PEC
*/
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Rotate_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Rotate_001
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -983,7 +983,7 @@ HWTEST_F(UIViewTest, Graphic_UIView_Test_Rotate_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F4E5E
*/
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Rotate_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Rotate_002
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
@@ -1023,7 +1023,7 @@ HWTEST_F(UIViewTest, Graphic_UIView_Test_Scale_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000EVI2T
*/
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Scale_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIViewTest
,
Graphic_UIView_Test_Scale_002
,
TestSize
.
Level
1
)
{
if
(
view_
==
nullptr
)
{
EXPECT_NE
(
0
,
0
);
...
...
test/unittest/events/drag_event_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -107,7 +107,7 @@ HWTEST_F(DragEventTest, DragEventGetStartPoint_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH4
*/
HWTEST_F
(
DragEventTest
,
DragEventSetPreLastPoint_001
,
TestSize
.
Level
0
)
HWTEST_F
(
DragEventTest
,
DragEventSetPreLastPoint_001
,
TestSize
.
Level
1
)
{
if
(
dragEvent_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -154,7 +154,7 @@ HWTEST_F(DragEventTest, DragEventGetDragDirection_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH4
*/
HWTEST_F
(
DragEventTest
,
DragEventGetDeltaX_001
,
TestSize
.
Level
0
)
HWTEST_F
(
DragEventTest
,
DragEventGetDeltaX_001
,
TestSize
.
Level
1
)
{
if
(
dragEvent_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
@@ -169,7 +169,7 @@ HWTEST_F(DragEventTest, DragEventGetDeltaX_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000DRSH4
*/
HWTEST_F
(
DragEventTest
,
DragEventGetDeltaY_001
,
TestSize
.
Level
0
)
HWTEST_F
(
DragEventTest
,
DragEventGetDeltaY_001
,
TestSize
.
Level
1
)
{
if
(
dragEvent_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/events/event_bubble_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -311,7 +311,7 @@ HWTEST_F(EventBubbleTest, Graphic_EventBubbleTest_Test_UIViewGroup_GetTargetView
* @tc.type: FUNC
* @tc.require: AR000F4E5C
*/
HWTEST_F
(
EventBubbleTest
,
Graphic_EventBubbleTest_Test_UIView_GetTargetView_009
,
TestSize
.
Level
0
)
HWTEST_F
(
EventBubbleTest
,
Graphic_EventBubbleTest_Test_UIView_GetTargetView_009
,
TestSize
.
Level
1
)
{
if
((
clickView_
==
nullptr
)
||
(
rootView_
==
nullptr
))
{
return
;
...
...
test/unittest/events/event_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -54,7 +54,7 @@ void EventTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: SR000DRSH4
*/
HWTEST_F
(
EventTest
,
EventConstructor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
EventTest
,
EventConstructor_001
,
TestSize
.
Level
1
)
{
if
(
event_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/events/key_event_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -55,7 +55,7 @@ void KeyEventTest::TearDownTestCase(void)
* @tc.type: FUNC
* @tc.require: SR000DRSH4
*/
HWTEST_F
(
KeyEventTest
,
KeyEventGetKeyId_001
,
TestSize
.
Level
0
)
HWTEST_F
(
KeyEventTest
,
KeyEventGetKeyId_001
,
TestSize
.
Level
1
)
{
if
(
keyEvent_
==
nullptr
)
{
EXPECT_EQ
(
1
,
0
);
...
...
test/unittest/font/ui_font_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -51,7 +51,7 @@ HWTEST_F(UIFontTest, Graphic_Font_Test_GetInstance_001, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: SR000F3PEK
*/
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_GetInstance_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_GetInstance_002
,
TestSize
.
Level
1
)
{
UIFont
*
font
=
UIFont
::
GetInstance
();
bool
ret
=
UIFont
::
GetInstance
()
->
IsVectorFont
();
...
...
@@ -64,7 +64,7 @@ HWTEST_F(UIFontTest, Graphic_Font_Test_GetInstance_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F3R7C
*/
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_RegisterFontInfo_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_RegisterFontInfo_001
,
TestSize
.
Level
1
)
{
uint8_t
ret
=
UIFont
::
GetInstance
()
->
RegisterFontInfo
(
"error"
);
EXPECT_EQ
(
ret
,
FONT_ERROR_RET
);
...
...
@@ -88,7 +88,7 @@ HWTEST_F(UIFontTest, Graphic_Font_Test_RegisterFontInfo_002, TestSize.Level0)
* @tc.type: FUNC
* @tc.require: AR000F3R7C
*/
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_UnregisterFontInfo_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIFontTest
,
Graphic_Font_Test_UnregisterFontInfo_001
,
TestSize
.
Level
1
)
{
uint8_t
ret
=
UIFont
::
GetInstance
()
->
UnregisterFontInfo
(
"error font name"
);
EXPECT_EQ
(
ret
,
FONT_ERROR_RET
);
...
...
test/unittest/rotate/ui_rotate_input_unit_test.cpp
浏览文件 @
b3974e19
...
...
@@ -40,7 +40,7 @@ public:
* @tc.type: FUNC
* @tc.require: SR000ERCQF
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_001
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_001
,
TestSize
.
Level
1
)
{
UIScrollView
*
scroll
=
new
UIScrollView
();
scroll
->
SetRotateFactor
(
10
);
// 10 : rotate factor
...
...
@@ -54,7 +54,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_SetRotateFactor_001, TestSi
* @tc.type: FUNC
* @tc.require: SR000ERCQF
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_002
,
TestSize
.
Level
1
)
{
UISwipeView
*
swipe
=
new
UISwipeView
();
swipe
->
SetRotateFactor
(
10
);
// 10 : rotate factor
...
...
@@ -68,7 +68,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_SetRotateFactor_002, TestSi
* @tc.type: FUNC
* @tc.require: SR000ERCQF
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_003
,
TestSize
.
Level
1
)
{
UIList
*
list
=
new
UIList
();
list
->
SetRotateFactor
(
10
);
// 10 : rotate factor
...
...
@@ -82,7 +82,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_SetRotateFactor_003, TestSi
* @tc.type: FUNC
* @tc.require: SR000ERCQF
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_004
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_004
,
TestSize
.
Level
1
)
{
UIList
*
list
=
new
UIList
();
list
->
SetRotateFactor
(
20
);
// 10 : rotate factor
...
...
@@ -96,7 +96,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_SetRotateFactor_004, TestSi
* @tc.type: FUNC
* @tc.require: AR000EVI2R
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_005
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_SetRotateFactor_005
,
TestSize
.
Level
1
)
{
UISlider
*
slider
=
new
UISlider
();
slider
->
SetRotateFactor
(
10
);
// 10 : rotate factor
...
...
@@ -123,7 +123,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_RequestFocus_001, TestSize.
* @tc.type: FUNC
* @tc.require: AR000FH554
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_002
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_002
,
TestSize
.
Level
1
)
{
UITimePicker
*
timePicker
=
new
UITimePicker
();
timePicker
->
RequestFocus
();
...
...
@@ -136,7 +136,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_RequestFocus_002, TestSize.
* @tc.type: FUNC
* @tc.require: AR000FH554
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_003
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_003
,
TestSize
.
Level
1
)
{
UISwipeView
*
swipe
=
new
UISwipeView
();
swipe
->
RequestFocus
();
...
...
@@ -149,7 +149,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_RequestFocus_003, TestSize.
* @tc.type: FUNC
* @tc.require: SR000ERCQG
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_004
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_004
,
TestSize
.
Level
1
)
{
UIList
*
list
=
new
UIList
();
list
->
RequestFocus
();
...
...
@@ -162,7 +162,7 @@ HWTEST_F(UIRotateInputTest, Graphic_RotateInput_Test_RequestFocus_004, TestSize.
* @tc.type: FUNC
* @tc.require: AR000EVI2S
*/
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_005
,
TestSize
.
Level
0
)
HWTEST_F
(
UIRotateInputTest
,
Graphic_RotateInput_Test_RequestFocus_005
,
TestSize
.
Level
1
)
{
UISlider
*
slider
=
new
UISlider
();
slider
->
RequestFocus
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录