Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8329ca49
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8329ca49
编写于
8月 04, 2022
作者:
L
lwx1121892
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<liuxueqi3@huawei.com>
Signed-off-by:
N
lwx1121892
<
liuxueqi3@huawei.com
>
上级
53660364
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
68 addition
and
67 deletion
+68
-67
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
...ge/image_js_standard/image/src/main/js/test/image.test.js
+8
-7
multimedia/image/image_js_standard/image/src/main/js/test/testImg.js
...image/image_js_standard/image/src/main/js/test/testImg.js
+6
-6
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
...js_standard/imagePacking/src/main/js/test/packing.test.js
+54
-54
未找到文件。
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
浏览文件 @
8329ca49
...
...
@@ -17,7 +17,7 @@ import image from '@ohos.multimedia.image'
import
fileio
from
'
@ohos.fileio
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
{
testPng
,
testJpg
}
from
'
./testImg
'
import
{
tc
_020Buf
,
tc_020_1Buf
,
tc_021Buf
,
tc_021_1Buf
,
tc_022Buf
}
from
'
./testImg
'
import
{
tc
Buf020
,
tc_020_1Buf
,
tcBuf021
,
tcBuf021_1
,
tcBuf022
}
from
'
./testImg
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
export
default
function
imageJsTest
()
{
...
...
@@ -218,7 +218,7 @@ export default function imageJsTest() {
/**
* @tc.number : TC_001-6
* @tc.name : create pixelmap-callback(editable: true, pixelFormat: RGBA_8888, size: { height: 6, width: 8 } bytes > buffer )
* @tc.desc : 1.create InitializationOptions object
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
...
...
@@ -336,7 +336,7 @@ export default function imageJsTest() {
var
bufferArr2
=
new
Uint8Array
(
readBuffer
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr2
.
length
;
i
++
)
{
if
(
bufferArr2
[
i
]
!=
tc
_020Buf
[
i
])
{
if
(
bufferArr2
[
i
]
!=
tc
Buf020
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_20_buffer
'
+
bufferArr2
[
i
]);
console
.
info
(
'
TC_020 failed
'
);
...
...
@@ -498,7 +498,7 @@ export default function imageJsTest() {
var
bufferArr2
=
new
Uint8Array
(
area
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr2
.
length
;
i
++
)
{
if
(
bufferArr2
[
i
]
!=
tc
_021Buf
[
i
])
{
if
(
bufferArr2
[
i
]
!=
tc
Buf021
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_021 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -556,7 +556,7 @@ export default function imageJsTest() {
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr
.
length
;
i
++
)
{
console
.
info
(
'
TC_021-1 buffer
'
+
bufferArr
[
i
]);
if
(
bufferArr
[
i
]
!=
tc
_021_1Buf
[
i
])
{
if
(
bufferArr
[
i
]
!=
tc
Buf021_1
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_021-1 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -794,7 +794,7 @@ export default function imageJsTest() {
var
readArr
=
new
Uint8Array
(
readArea
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
readArr
.
length
;
i
++
)
{
if
(
readArr
[
i
]
!=
tc
_022Buf
[
i
])
{
if
(
readArr
[
i
]
!=
tc
Buf022
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_022 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -816,6 +816,7 @@ export default function imageJsTest() {
done
();
})
})
/**
* @tc.number : TC_022-1
* @tc.name : writePixels-callback
...
...
@@ -859,7 +860,7 @@ export default function imageJsTest() {
var
readArr
=
new
Uint8Array
(
readArea
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
readArr
.
length
;
i
++
)
{
if
(
readArr
[
i
]
!=
tc
_022Buf
[
i
])
{
if
(
readArr
[
i
]
!=
tc
Buf022
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_022-1 failed
'
);
expect
(
false
).
assertTrue
();
...
...
multimedia/image/image_js_standard/image/src/main/js/test/testImg.js
浏览文件 @
8329ca49
...
...
@@ -607,14 +607,14 @@ let testJpg = new Uint8Array([255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
15
,
255
,
217
])
let
tc
_020Buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc
Buf020
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc
_020_1Buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc
Buf020_1
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc
_021Buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc
Buf021
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc
_021_1Buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc
Buf021_1
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc
_022Buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc
Buf022
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
export
{
testPng
,
testJpg
,
tc_020Buf
,
tc_020_1Buf
,
tc_021Buf
,
tc_021_1Buf
,
tc_022Buf
}
\ No newline at end of file
export
{
testPng
,
testJpg
,
tcBuf020
,
tcBuf020_1
,
tcBuf021
,
tcBuf021_1
,
tcBuf022
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
浏览文件 @
8329ca49
...
...
@@ -54,7 +54,7 @@ describe('imagePacking', function () {
console
.
info
(
'
afterAll case
'
);
})
function
packing
_
Promise
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packingPromise
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -100,7 +100,7 @@ describe('imagePacking', function () {
})
}
function
packing
_
Cb
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packingCb
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -146,7 +146,7 @@ describe('imagePacking', function () {
})
}
function
packing
_Cb_
Fail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
Cb
Fail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -179,7 +179,7 @@ describe('imagePacking', function () {
})
}
function
packing
_Promise_
Fail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
Promise
Fail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -228,7 +228,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
packing
_
Promise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
packingPromise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
})
/**
...
...
@@ -243,7 +243,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
})
/**
...
...
@@ -258,7 +258,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
})
/**
...
...
@@ -273,7 +273,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
})
/**
...
...
@@ -288,7 +288,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
})
/**
...
...
@@ -303,7 +303,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing
_
Promise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
packingPromise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
})
/**
...
...
@@ -318,7 +318,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
})
/**
...
...
@@ -333,7 +333,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
})
/**
...
...
@@ -348,7 +348,7 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
})
/**
...
...
@@ -363,12 +363,12 @@ describe('imagePacking', function () {
*/
it
(
'
SUB_IMAGE_packing_P_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_Promise_
Fail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
packing
Promise
Fail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_001
* @tc.name : SUB_IMAGE_packing
_
Cb_001
* @tc.number : SUB_IMAGE_packingCb_001
* @tc.name : SUB_IMAGE_packingCb_001
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -376,14 +376,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_001
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
packing
_Cb
(
done
,
'
SUB_IMAGE_packing_
Cb_001
'
,
2
,
packOpts
)
packing
Cb
(
done
,
'
SUB_IMAGE_packing
Cb_001
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_002
* @tc.name : SUB_IMAGE_packing
_
Cb_002 - callback - RGB565 quality 123
* @tc.number : SUB_IMAGE_packingCb_002
* @tc.name : SUB_IMAGE_packingCb_002 - callback - RGB565 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -391,15 +391,15 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_002
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_002
'
,
2
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_002
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_003
* @tc.name : SUB_IMAGE_packing
_
Cb_003 - callback - RGB565 quality null
* @tc.number : SUB_IMAGE_packingCb_003
* @tc.name : SUB_IMAGE_packingCb_003 - callback - RGB565 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -407,14 +407,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_003
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_003
'
,
2
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_003
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_004
* @tc.name : SUB_IMAGE_packing
_
Cb_004 - callback - RGB565 format null
* @tc.number : SUB_IMAGE_packingCb_004
* @tc.name : SUB_IMAGE_packingCb_004 - callback - RGB565 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -422,14 +422,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_004
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_004
'
,
2
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_004
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_005
* @tc.name : SUB_IMAGE_packing
_
Cb_005 - callback - RGB565 wrong format
* @tc.number : SUB_IMAGE_packingCb_005
* @tc.name : SUB_IMAGE_packingCb_005 - callback - RGB565 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -437,14 +437,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_005
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_005
'
,
2
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_005
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_006
* @tc.name : SUB_IMAGE_packing
_
Cb_006
* @tc.number : SUB_IMAGE_packingCb_006
* @tc.name : SUB_IMAGE_packingCb_006
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -452,14 +452,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_006
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing
_Cb
(
done
,
'
SUB_IMAGE_packing_
Cb_006
'
,
5
,
packOpts
)
packing
Cb
(
done
,
'
SUB_IMAGE_packing
Cb_006
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_007
* @tc.name : SUB_IMAGE_packing
_
Cb_007 - callback - RGB888 quality 123
* @tc.number : SUB_IMAGE_packingCb_007
* @tc.name : SUB_IMAGE_packingCb_007 - callback - RGB888 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -467,15 +467,15 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_007
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_007
'
,
5
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_007
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_008
* @tc.name : SUB_IMAGE_packing
_
Cb_008 - callback - RGB888 quality null
* @tc.number : SUB_IMAGE_packingCb_008
* @tc.name : SUB_IMAGE_packingCb_008 - callback - RGB888 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -483,14 +483,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_008
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_008
'
,
5
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_008
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_009
* @tc.name : SUB_IMAGE_packing
_
Cb_009 - callback - RGB888 format null
* @tc.number : SUB_IMAGE_packingCb_009
* @tc.name : SUB_IMAGE_packingCb_009 - callback - RGB888 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -498,14 +498,14 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_009
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_009
'
,
5
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_009
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing
_
Cb_010
* @tc.name : SUB_IMAGE_packing
_
Cb_010 - callback - RGB888 wrong format
* @tc.number : SUB_IMAGE_packingCb_010
* @tc.name : SUB_IMAGE_packingCb_010 - callback - RGB888 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -513,9 +513,9 @@ describe('imagePacking', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing
_
Cb_010
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packingCb_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_Cb_Fail
(
done
,
'
SUB_IMAGE_packing_
Cb_010
'
,
5
,
packOpts
)
packing
CbFail
(
done
,
'
SUB_IMAGE_packing
Cb_010
'
,
5
,
packOpts
)
})
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录