Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Graphic Ui
提交
fdca0510
G
Graphic Ui
项目概览
OpenHarmony
/
Graphic Ui
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
fdca0510
编写于
1月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!579 修复image门禁测试用例
Merge pull request !579 from 郝烁/unittest
上级
ca776705
3e218187
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
11 deletion
+10
-11
test/framework/include/test_resource_config.h
test/framework/include/test_resource_config.h
+1
-1
test/uitest/test_image/ui_test_image.cpp
test/uitest/test_image/ui_test_image.cpp
+4
-4
test/uitest/test_image/ui_test_image.h
test/uitest/test_image/ui_test_image.h
+4
-4
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+0
-1
test/unittest/components/ui_image_unit_test.cpp
test/unittest/components/ui_image_unit_test.cpp
+1
-1
未找到文件。
test/framework/include/test_resource_config.h
浏览文件 @
fdca0510
...
...
@@ -57,7 +57,7 @@ namespace OHOS {
#define PNG_16_GRAY_IMAGE_PATH (IMAGE_DIR "png_16_gray.png")
#define PNG_24_RGB_IMAGE_PATH (IMAGE_DIR "png_24_rgb.png")
#define PNG_32_RGB_ALPHA_IMAGE_PATH (IMAGE_DIR "png_32_rgba.png")
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
#define GIF_IMAGE_PATH1 (IMAGE_DIR "gif_image1.gif")
#define GIF_IMAGE_PATH2 (IMAGE_DIR "gif_image2.gif")
#define GIF_IMAGE_PATH_ERROR (IMAGE_DIR "gif_error.gif")
...
...
test/uitest/test_image/ui_test_image.cpp
浏览文件 @
fdca0510
...
...
@@ -17,7 +17,7 @@
#include "common/screen.h"
#include "components/ui_label.h"
#include "default_resource/check_box_res.h"
#if
def VERSION_LITE
#if
(ENABLE_GIF == 1)
#include "components/ui_image_view.h"
#include "test_resource_config.h"
#endif
...
...
@@ -42,7 +42,7 @@ void UITestImage::TearDown()
{
DeleteChildren
(
container_
);
container_
=
nullptr
;
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
gifImageView_
=
nullptr
;
gifToGif_
=
nullptr
;
gifToJpeg_
=
nullptr
;
...
...
@@ -69,7 +69,7 @@ const UIView* UITestImage::GetTestView()
UIKit_UIImage_Test_SetImage_012
();
UIKit_UIImage_Test_SetImage_013
();
UIKit_UIImage_Test_SetImage_014
();
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
UIKit_UIImage_Test_SetImage_015
();
UIKit_UIImage_Test_SetImage_016
();
#endif
...
...
@@ -382,7 +382,7 @@ void UITestImage::UIKit_UIImage_Test_SetImage_014()
}
}
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
void
UITestImage
::
UIKit_UIImage_Test_SetImage_015
()
{
if
(
container_
!=
nullptr
)
{
...
...
test/uitest/test_image/ui_test_image.h
浏览文件 @
fdca0510
...
...
@@ -27,7 +27,7 @@
#endif
namespace
OHOS
{
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
class
UITestImage
:
public
UITest
,
public
OHOS
::
UIView
::
OnClickListener
{
#else
class
UITestImage
:
public
UITest
{
...
...
@@ -51,7 +51,7 @@ public:
void
UIKit_UIImage_Test_SetImage_012
();
void
UIKit_UIImage_Test_SetImage_013
();
void
UIKit_UIImage_Test_SetImage_014
();
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
void
UIKit_UIImage_Test_SetImage_015
();
void
UIKit_UIImage_Test_SetImage_016
();
#endif
...
...
@@ -59,12 +59,12 @@ public:
void
UIKit_UIImage_Test_Resize_001
();
private:
const
char
*
GetCharByImageSrcType
(
ImageSrcType
srcType
)
const
;
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
bool
OnClick
(
UIView
&
view
,
const
ClickEvent
&
event
)
override
;
void
SetUpButton
(
UILabelButton
*
btn
,
const
char
*
title
);
#endif
UIScrollView
*
container_
=
nullptr
;
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
UIImageView
*
gifImageView_
=
nullptr
;
UILabelButton
*
gifToGif_
=
nullptr
;
UILabelButton
*
gifToJpeg_
=
nullptr
;
...
...
test/unittest/BUILD.gn
浏览文件 @
fdca0510
...
...
@@ -94,7 +94,6 @@ if (ohos_kernel_type != "liteos_m") {
"events/release_event_unit_test.cpp",
"events/virtual_device_event_unit_test.cpp",
"font/ui_font_unit_test.cpp",
"image/image_load_unit_test.cpp",
"layout/flex_layout_unit_test.cpp",
"layout/grid_layout_unit_test.cpp",
"layout/list_layout_unit_test.cpp",
...
...
test/unittest/components/ui_image_unit_test.cpp
浏览文件 @
fdca0510
...
...
@@ -98,7 +98,7 @@ HWTEST_F(UIImageViewTest, UIImageViewSetPosition_001, TestSize.Level0)
EXPECT_EQ
(
imageView_
->
GetHeight
(),
0
);
}
#if
ndef VERSION_LITE
#if
(ENABLE_GIF == 1)
/**
* @tc.name: UIImageViewSetSrc_001
* @tc.desc: Verify SetSrc function, correct gif path, equal.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录