Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
08857a39
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看板
未验证
提交
08857a39
编写于
9月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5376 image用例名修改
Merge pull request !5376 from 秦莉文/master
上级
1a9f665d
1d9a5cb2
变更
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
浏览文件 @
08857a39
...
...
@@ -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.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @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
"
]
}
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.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -322,9 +322,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @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
}
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 () {
})
/**
* @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.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @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
"
]
}
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.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @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
}
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
浏览文件 @
08857a39
...
...
@@ -326,32 +326,32 @@ describe('imageExif', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
DATETIMEORIGINAL_01
00
* @tc.name : getImageProperty(DateTimeOriginal)
* @tc.number : SUB_GRAPHIC_IMAGE_EXIF_GETIMAGEPROPERTY_
PROMISE_09
00
* @tc.name : getImageProperty(DateTimeOriginal)
-promise
* @tc.desc : 1.create imagesource
* 2.set property
* 3.call getImageProperty(
ImageLength
)
* 3.call getImageProperty(
DateTimeOriginal
)
* 4.The return value is not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @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
'
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
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
();
done
();
}
else
{
imageSourceApi
.
getImageProperty
(
"
DateTimeOriginal
"
)
.
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
();
done
();
})
.
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
();
done
();
})
...
...
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
08857a39
...
...
@@ -752,7 +752,7 @@ describe('imageModifyProperty', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
100
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
100
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -761,12 +761,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
100
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
100
'
,
'
fd
'
,
"
Orientation
"
,
"
abcdef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
100
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
100
'
,
'
fd
'
,
"
Orientation
"
,
"
abcdef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
200
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
200
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -775,12 +775,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
200
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
200
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
200
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
200
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
300
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
300
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -789,12 +789,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
300
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_1300
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
300
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_ERROR_0300
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
400
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
400
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -803,12 +803,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
400
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
400
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
456
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
400
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
400
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
500
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
500
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -817,12 +817,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
500
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
500
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
500
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
500
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
600
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
600
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -831,12 +831,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
600
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
600
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
700
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
700
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -845,12 +845,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
700
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
700
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
800
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
800
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -859,12 +859,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
800
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
800
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
900
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
900
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -873,12 +873,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
900
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
1
900
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
900
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_0
900
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
2
000
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_1
000
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -887,12 +887,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
2
000
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
2
000
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_1
000
'
,
0
,
async
function
(
done
)
{
modifyImageErrPromise
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_PROMISE_
ERROR_1
000
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
100
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
100
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -901,12 +901,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
100
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
100
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
100
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
100
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
200
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
200
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -915,12 +915,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
200
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
200
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
200
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
200
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
300
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
300
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -929,12 +929,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
300
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
300
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
300
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
300
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
400
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
400
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -943,12 +943,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
400
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
400
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
400
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
400
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
500
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
500
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -957,12 +957,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
500
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
500
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
500
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
500
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
600
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
600
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -971,12 +971,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
600
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
600
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
700
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
700
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -985,12 +985,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
700
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
700
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
800
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
800
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -999,12 +999,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
800
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
800
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
900
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
900
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1013,12 +1013,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
900
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
1
900
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
900
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_0
900
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
2
000
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_1
000
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1027,12 +1027,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
2
000
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
2
000
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_1
000
'
,
0
,
async
function
(
done
)
{
modifyErrCb
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_CALLBACK_
ERROR_1
000
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
100
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
100
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1041,12 +1041,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
100
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
100
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
100
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
100
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
200
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
200
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1055,12 +1055,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
200
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
200
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
200
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
200
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
300
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
300
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1069,12 +1069,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
300
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
300
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
300
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
300
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
400
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
400
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1083,12 +1083,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
400
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
400
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
400
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
400
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
1234
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
500
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
500
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1097,12 +1097,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
500
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
500
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
567
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
500
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
500
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
567
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
600
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
600
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1111,12 +1111,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
600
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcef
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
600
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
600
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcef
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
700
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
700
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1125,12 +1125,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
700
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
700
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
700
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
800
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
800
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1139,12 +1139,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
800
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
800
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
800
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
900
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
900
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1153,12 +1153,12 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
900
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_2
900
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
900
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_0
900
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_3
000
* @tc.number : SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_1
000
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
...
...
@@ -1167,7 +1167,7 @@ describe('imageModifyProperty', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_3
000
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
CALLBACK_3
000
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
it
(
'
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_1
000
'
,
0
,
async
function
(
done
)
{
modifyErrCb1
(
done
,
"
SUB_GRAPHIC_IMAGE_MODIFYPROPERTY_
PROPERTY_CALLBACK_ERROR_1
000
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})}
multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js
浏览文件 @
08857a39
...
...
@@ -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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -703,12 +703,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_JPEG_0100
'
,
JPEG
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
JPEG_0100
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -718,12 +718,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_YUV_U_0100
'
,
YUV_U
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_
YUV_U_0100
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -733,12 +733,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_02
00
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_02
00
'
,
YUV_V
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_V_01
00
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -748,12 +748,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_03
00
'
,
0
,
async
function
(
done
)
{
getComponentP
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_03
00
'
,
YUV_Y
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
PROMISE_YUV_Y_01
00
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -763,12 +763,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
JPEG_02
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
JPEG_02
00
'
,
JPEG
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_JPEG_01
00
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -778,12 +778,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_04
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_04
00
'
,
YUV_Y
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_Y_01
00
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -793,12 +793,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_05
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_05
00
'
,
YUV_V
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_V_01
00
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -808,8 +808,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_06
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
YUV_U_06
00
'
,
YUV_U
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_U_01
00
'
,
0
,
async
function
(
done
)
{
getComponentCb
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_GETCOMPONENT_
CALLBACK_YUV_U_01
00
'
,
YUV_U
)
})
/**
...
...
@@ -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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -1083,12 +1083,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0100
'
,
1
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0100
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -1096,12 +1096,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0200
'
,
null
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0200
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -1109,12 +1109,12 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0300
'
,
{
a
:
1
})
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0300
'
,
0
,
async
function
(
done
)
{
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.desc : 1.create ImageReceiver
* 2.call on
...
...
@@ -1122,8 +1122,8 @@ describe('ImageReceiver', function () {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_0400
'
,
'
a
'
)
it
(
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0400
'
,
0
,
async
function
(
done
)
{
onErr
(
done
,
'
SUB_GRAPHIC_IMAGE_RECEIVER_IMAGERECEIVER_ON_
ERROR_
0400
'
,
'
a
'
)
})
})
}
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
08857a39
...
...
@@ -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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -973,13 +973,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -988,13 +988,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1003,9 +1003,9 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
"
]
}
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 () {
})
/**
* @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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1048,13 +1048,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
"
]
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1063,13 +1063,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1078,13 +1078,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1093,14 +1093,14 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1109,13 +1109,13 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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.desc : 1.create ImageSource
* 2.call packing
...
...
@@ -1124,8 +1124,8 @@ describe('imageWebp', function () {
* @tc.type : Functional
* @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
}
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
浏览文件 @
08857a39
...
...
@@ -308,128 +308,128 @@ describe('imageYuv', function () {
}
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_001
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0100
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0100
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0100
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0100
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0100
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_002
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0200
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0200
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0200
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_0200
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_
PROMISE_
0200
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
1
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_003
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0300
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
1
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
1
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
2
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_004
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0400
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
2
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
2
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_005
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0500
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
3
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_006
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0600
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
4
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_007
- Promise - wrong format
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
7
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0700
- Promise - wrong format
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
7
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
5
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
7
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_P_008
- Promise - format null
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
8
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0800
- Promise - format null
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
8
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
6
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_PROMISE_0
8
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_001
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0100
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0100
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -438,16 +438,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0100
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0100
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0100
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_002
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0200
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0200
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -456,16 +456,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0200
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_0200
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_
PROMISE_
0200
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
1
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_003
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0300
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -474,16 +474,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
1
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
1
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
2
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_004
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0400
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -492,16 +492,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
2
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
2
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_005
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0500
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -510,16 +510,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
3
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_006
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0600
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -528,16 +528,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
4
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_007
- Promise - wrong format
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
7
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0700
- Promise - wrong format
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -546,16 +546,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
7
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
5
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
7
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_P_008
- Promise - format null
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
8
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0800
- Promise - format null
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -564,11 +564,11 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
8
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
6
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_PROMISE_0
8
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -602,98 +602,98 @@ describe('imageYuv', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_01
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_003
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
03
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0300
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_01
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
03
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_01
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
03
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_02
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_004
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
04
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0400
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
04
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_02
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
04
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_03
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_005
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
05
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0500
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_03
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
05
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_03
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
05
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_04
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_006
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
06
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0600
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_04
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
06
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_04
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
06
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_05
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_007
- Promise - wrong format
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
07
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0700
- Promise - wrong format
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_05
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
07
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_05
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
07
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_06
00
* @tc.name : SUB_
IMAGE_yuv_pixelmap_CB_008
- Promise - format null
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
08
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_PIXELMAP_CB_0800
- Promise - format null
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_06
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
08
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
PROMISE_06
00
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_PIXELMAP_CB_
08
00
'
,
sourceOptions
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_001
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0100
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -728,8 +728,8 @@ describe('imageYuv', function () {
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_01
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_003
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
03
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0300
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -738,16 +738,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_01
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
03
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_01
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
03
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_02
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_004
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
04
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0400
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -756,16 +756,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_02
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
04
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_02
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
04
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_03
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_005
- Promise - wrong buffer
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
05
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0500
- Promise - wrong buffer
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -774,16 +774,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_03
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
05
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
new
ArrayBuffer
(
5
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_03
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
05
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_04
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_006
- Promise - wrong width
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
06
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0600
- Promise - wrong width
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -792,16 +792,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_04
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
06
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_04
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
06
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_05
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_007
- Promise - wrong format
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
07
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0700
- Promise - wrong format
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -810,16 +810,16 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_05
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
07
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_05
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
07
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_06
00
* @tc.name : SUB_
IMAGE_yuv_imagesource_CB_008
- Promise - format null
* @tc.number : SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
08
00
* @tc.name : SUB_
GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_0800
- Promise - format null
* @tc.desc : 1.create ImageSource
* 2.create pixelmap
* 3.create ImagePacker
...
...
@@ -828,10 +828,10 @@ describe('imageYuv', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_06
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
08
00
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
PROMISE_06
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_Fail
(
done
,
'
SUB_GRAPHIC_IMAGE_YUV_IMAGESOURCE_CB_
08
00
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
})}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录