Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1d9a5cb2
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1d9a5cb2
编写于
9月 04, 2022
作者:
Q
qinliwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<image用例名修改>
Signed-off-by:
N
qinliwen
<
qinliwen3@huawei.com
>
上级
1a9f665d
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
285 addition
and
285 deletion
+285
-285
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
...ndard/imageColorspace/src/main/js/test/colorspace.test.js
+12
-12
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+7
-7
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+90
-90
multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js
..._standard/imageReceiver/src/main/js/test/receiver.test.js
+36
-36
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
...image_js_standard/imageWebp/src/main/js/test/webp.test.js
+27
-27
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
...e/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
+113
-113
未找到文件。
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
浏览文件 @
1d9a5cb2
...
@@ -298,7 +298,7 @@ describe('imageColorSpace', function () {
...
@@ -298,7 +298,7 @@ describe('imageColorSpace', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
QUALITY_
0100
* @tc.name : Encode -callback-no quality
* @tc.name : Encode -callback-no quality
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.createImagePacker
* 2.createImagePacker
...
@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
...
@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
QUALITY_
0100
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
QUALITY_
0100
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
02
00
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
FORMAT_01
00
* @tc.name : Encode -callback-no format
* @tc.name : Encode -callback-no format
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.createImagePacker
* 2.createImagePacker
...
@@ -322,9 +322,9 @@ describe('imageColorSpace', function () {
...
@@ -322,9 +322,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
FORMAT_01
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
50
}
let
packOpts
=
{
quality
:
50
}
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
02
00
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_
FORMAT_01
00
'
,
packOpts
)
})
})
/**
/**
...
@@ -358,7 +358,7 @@ describe('imageColorSpace', function () {
...
@@ -358,7 +358,7 @@ describe('imageColorSpace', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
QUALITY_
0100
* @tc.name : Encode -promise -no quality
* @tc.name : Encode -promise -no quality
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.createImagePacker
* 2.createImagePacker
...
@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
...
@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
QUALITY_
0100
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
QUALITY_
0100
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
02
00
* @tc.number : SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
FORMAT_01
00
* @tc.name : Encode -promise -no format
* @tc.name : Encode -promise -no format
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.createImagePacker
* 2.createImagePacker
...
@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
...
@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
FORMAT_01
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
100
}
let
packOpts
=
{
quality
:
100
}
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
02
00
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_
FORMAT_01
00
'
,
packOpts
)
})
})
})
})
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
1d9a5cb2
...
@@ -326,32 +326,32 @@ describe('imageExif', function () {
...
@@ -326,32 +326,32 @@ describe('imageExif', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00
* @tc.name : getImageProperty(DateTimeOriginal)
* @tc.name : getImageProperty(DateTimeOriginal)
-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.set property
* 2.set property
* 3.call getImageProperty(
ImageLength
)
* 3.call getImageProperty(
DateTimeOriginal
)
* 4.The return value is not empty
* 4.The return value is not empty
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00
'
,
0
,
async
function
(
done
)
{
await
getFd
(
'
test_exif.jpg
'
);
await
getFd
(
'
test_exif.jpg
'
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00 create image source failed
'
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00 create image source failed
'
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
imageSourceApi
.
getImageProperty
(
"
DateTimeOriginal
"
)
imageSourceApi
.
getImageProperty
(
"
DateTimeOriginal
"
)
.
then
(
data
=>
{
.
then
(
data
=>
{
console
.
info
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00 DateTimeOriginal
'
+
data
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00 DateTimeOriginal
'
+
data
);
expect
(
data
!=
undefined
&&
data
!=
''
).
assertTrue
();
expect
(
data
!=
undefined
&&
data
!=
''
).
assertTrue
();
done
();
done
();
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
log
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00 error:
'
+
error
);
console
.
log
(
'
SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00 error:
'
+
error
);
expect
(
false
).
assertFail
();
expect
(
false
).
assertFail
();
done
();
done
();
})
})
...
...
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
1d9a5cb2
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js
浏览文件 @
1d9a5cb2
...
@@ -693,7 +693,7 @@ describe('ImageReceiver', function () {
...
@@ -693,7 +693,7 @@ describe('ImageReceiver', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
JPEG_0100
* @tc.name : getComponent-jpeg
* @tc.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -703,12 +703,12 @@ describe('ImageReceiver', function () {
...
@@ -703,12 +703,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
JPEG_0100
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
'
,
JPEG
)
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
JPEG_0100
'
,
JPEG
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
YUV_U_0100
* @tc.name : getComponent-YUV_U
* @tc.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -718,12 +718,12 @@ describe('ImageReceiver', function () {
...
@@ -718,12 +718,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
YUV_U_0100
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
'
,
YUV_U
)
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
YUV_U_0100
'
,
YUV_U
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_02
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_V_01
00
* @tc.name : getComponent-YUV_V
* @tc.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -733,12 +733,12 @@ describe('ImageReceiver', function () {
...
@@ -733,12 +733,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_V_01
00
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_02
00
'
,
YUV_V
)
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_V_01
00
'
,
YUV_V
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_03
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_Y_01
00
* @tc.name : getComponent-YUV_Y
* @tc.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -748,12 +748,12 @@ describe('ImageReceiver', function () {
...
@@ -748,12 +748,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_03
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_Y_01
00
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_03
00
'
,
YUV_Y
)
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_Y_01
00
'
,
YUV_Y
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
JPEG_02
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_JPEG_01
00
* @tc.name : getComponent-jpeg
* @tc.name : getComponent-jpeg
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -763,12 +763,12 @@ describe('ImageReceiver', function () {
...
@@ -763,12 +763,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
JPEG_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_JPEG_01
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
JPEG_02
00
'
,
JPEG
)
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_JPEG_01
00
'
,
JPEG
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_04
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_Y_01
00
* @tc.name : getComponent-YUV_Y
* @tc.name : getComponent-YUV_Y
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -778,12 +778,12 @@ describe('ImageReceiver', function () {
...
@@ -778,12 +778,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_04
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_Y_01
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_04
00
'
,
YUV_Y
)
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_Y_01
00
'
,
YUV_Y
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_05
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_V_01
00
* @tc.name : getComponent-YUV_V
* @tc.name : getComponent-YUV_V
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -793,12 +793,12 @@ describe('ImageReceiver', function () {
...
@@ -793,12 +793,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_05
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_V_01
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_05
00
'
,
YUV_V
)
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_V_01
00
'
,
YUV_V
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_06
00
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_U_01
00
* @tc.name : getComponent-YUV_U
* @tc.name : getComponent-YUV_U
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -808,8 +808,8 @@ describe('ImageReceiver', function () {
...
@@ -808,8 +808,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_06
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_U_01
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_06
00
'
,
YUV_U
)
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_U_01
00
'
,
YUV_U
)
})
})
/**
/**
...
@@ -1075,7 +1075,7 @@ describe('ImageReceiver', function () {
...
@@ -1075,7 +1075,7 @@ describe('ImageReceiver', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0100
* @tc.name : on-1
* @tc.name : on-1
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () {
...
@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0100
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
'
,
1
)
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0100
'
,
1
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0200
* @tc.name : on-null
* @tc.name : on-null
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () {
...
@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0200
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
'
,
null
)
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0200
'
,
null
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0300
* @tc.name : on-{a : 1}
* @tc.name : on-{a : 1}
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () {
...
@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0300
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
'
,
{
a
:
1
})
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0300
'
,
{
a
:
1
})
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
* @tc.number : SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0400
* @tc.name : on-'a'
* @tc.name : on-'a'
* @tc.desc : 1.create ImageReceiver
* @tc.desc : 1.create ImageReceiver
* 2.call on
* 2.call on
...
@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () {
...
@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 0
* @tc.level : Level 0
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0400
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
'
,
'
a
'
)
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0400
'
,
'
a
'
)
})
})
})
})
}
}
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
1d9a5cb2
...
@@ -964,7 +964,7 @@ describe('imageWebp', function () {
...
@@ -964,7 +964,7 @@ describe('imageWebp', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_
0200
* @tc.name : packing - promise-webp
* @tc.name : packing - promise-webp
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -973,13 +973,13 @@ describe('imageWebp', function () {
...
@@ -973,13 +973,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_
0200
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/gif
"
],
quality
:
90
}
let
packOpts
=
{
format
:
[
"
image/gif
"
],
quality
:
90
}
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0200
'
,
packOpts
)
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_
0200
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_01
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_03
00
* @tc.name : packing - promise-webp-no format
* @tc.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -988,13 +988,13 @@ describe('imageWebp', function () {
...
@@ -988,13 +988,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_01
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_03
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
90
}
let
packOpts
=
{
quality
:
90
}
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_01
00
'
,
packOpts
)
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_03
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_02
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_04
00
* @tc.name : packing - promise-webp-no format
* @tc.name : packing - promise-webp-no format
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1003,9 +1003,9 @@ describe('imageWebp', function () {
...
@@ -1003,9 +1003,9 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_04
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
NO_02
00
'
,
packOpts
)
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_04
00
'
,
packOpts
)
})
})
/**
/**
...
@@ -1039,7 +1039,7 @@ describe('imageWebp', function () {
...
@@ -1039,7 +1039,7 @@ describe('imageWebp', function () {
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_01
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_03
00
* @tc.name : packing - callback-webp-no quality
* @tc.name : packing - callback-webp-no quality
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1048,13 +1048,13 @@ describe('imageWebp', function () {
...
@@ -1048,13 +1048,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_01
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_03
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_01
00
'
,
packOpts
)
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_03
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_02
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_04
00
* @tc.name : packing - callback-webp-no format
* @tc.name : packing - callback-webp-no format
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1063,13 +1063,13 @@ describe('imageWebp', function () {
...
@@ -1063,13 +1063,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_04
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
90
}
let
packOpts
=
{
quality
:
90
}
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
NO_02
00
'
,
packOpts
)
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_04
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
02
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_05
00
* @tc.name : packing - callback-webp-quality -1
* @tc.name : packing - callback-webp-quality -1
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1078,13 +1078,13 @@ describe('imageWebp', function () {
...
@@ -1078,13 +1078,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_05
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
-
1
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
-
1
}
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
02
00
'
,
packOpts
)
packingCbErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_
ERROR_05
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
03
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_05
00
* @tc.name : packing - promise-webp-quality -1
* @tc.name : packing - promise-webp-quality -1
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1093,14 +1093,14 @@ describe('imageWebp', function () {
...
@@ -1093,14 +1093,14 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
03
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_05
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
-
1
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
-
1
}
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
03
00
'
,
packOpts
)
packingPromiseErr
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_
ERROR_05
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0
3
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0
2
00
* @tc.name : packing - callback-webp-quality 0
* @tc.name : packing - callback-webp-quality 0
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1109,13 +1109,13 @@ describe('imageWebp', function () {
...
@@ -1109,13 +1109,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0
3
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_0
2
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
0
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
0
}
packing
Promise
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_03
00
'
,
packOpts
)
packing
Cb
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_CALLBACK_02
00
'
,
packOpts
)
})
})
/**
/**
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
4
00
* @tc.number : SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
2
00
* @tc.name : packing - promise-webp-quality 0
* @tc.name : packing - promise-webp-quality 0
* @tc.desc : 1.create ImageSource
* @tc.desc : 1.create ImageSource
* 2.call packing
* 2.call packing
...
@@ -1124,8 +1124,8 @@ describe('imageWebp', function () {
...
@@ -1124,8 +1124,8 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
4
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
2
00
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
0
}
let
packOpts
=
{
format
:
[
"
image/jpeg
"
],
quality
:
0
}
packingPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
4
00
'
,
packOpts
)
packingPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_WEBP_PACKING_PROMISE_0
2
00
'
,
packOpts
)
})
})
})}
})}
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
浏览文件 @
1d9a5cb2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录