Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0a32ae69
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看板
提交
0a32ae69
编写于
7月 19, 2022
作者:
F
fengzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix pr 3912
Signed-off-by:
N
fengzewu
<
fengzewu@huawei.com
>
上级
35f83155
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
190 addition
and
166 deletion
+190
-166
multimedia/image/image_js_standard/imagePacking/BUILD.gn
multimedia/image/image_js_standard/imagePacking/BUILD.gn
+6
-6
multimedia/image/image_js_standard/imagePacking/Test.json
multimedia/image/image_js_standard/imagePacking/Test.json
+2
-2
multimedia/image/image_js_standard/imagePacking/src/main/config.json
...image/image_js_standard/imagePacking/src/main/config.json
+4
-4
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
...js_standard/imagePacking/src/main/js/test/packing.test.js
+93
-86
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
+85
-68
未找到文件。
multimedia/image/image_js_standard/imagePacking/BUILD.gn
浏览文件 @
0a32ae69
...
...
@@ -9,23 +9,23 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("image_packing_js_hap") {
hap_profile = "./src/main/config.json"
deps = [
":image_js_assets",
":image_resources",
":image_
packing_
js_assets",
":image_
packing_
resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsImage
p
ackingJsTest"
hap_name = "ActsImage
P
ackingJsTest"
}
ohos_js_assets("image_js_assets") {
ohos_js_assets("image_
packing_
js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("image_resources") {
ohos_resources("image_
packing_
resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
multimedia/image/image_js_standard/imagePacking/Test.json
浏览文件 @
0a32ae69
...
...
@@ -3,7 +3,7 @@
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"1500000"
,
"package"
:
"ohos.acts.multimedia.image"
,
"package"
:
"ohos.acts.multimedia.image
.Packing
"
,
"shell-timeout"
:
"120000"
},
"kits"
:
[
...
...
@@ -27,7 +27,7 @@
{
"test-file-name"
:
[
"ActsImage
p
ackingJsTest.hap"
"ActsImage
P
ackingJsTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
multimedia/image/image_js_standard/imagePacking/src/main/config.json
浏览文件 @
0a32ae69
...
...
@@ -6,7 +6,7 @@
"target"
:
7
},
"vendor"
:
"acts"
,
"bundleName"
:
"ohos.acts.multimedia.image"
,
"bundleName"
:
"ohos.acts.multimedia.image
.Packing
"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0.0"
...
...
@@ -35,7 +35,7 @@
"visible"
:
true
,
"labelId"
:
16777216
,
"icon"
:
"$media:icon"
,
"name"
:
"ohos.acts.multimedia.image.MainAbility"
,
"name"
:
"ohos.acts.multimedia.image.
Packing.
MainAbility"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
...
...
@@ -49,7 +49,7 @@
"tv"
,
"wearable"
],
"mainAbility"
:
"ohos.acts.multimedia.image.MainAbility"
,
"mainAbility"
:
"ohos.acts.multimedia.image.
Packing.
MainAbility"
,
"distro"
:
{
"moduleType"
:
"entry"
,
"installationFree"
:
false
,
...
...
@@ -86,7 +86,7 @@
"reason"
:
"use ohos.permission.WRITE_MEDIA"
}
],
"package"
:
"ohos.acts.multimedia.image"
,
"package"
:
"ohos.acts.multimedia.image
.Packing
"
,
"name"
:
".MyApplication"
,
"js"
:
[
{
...
...
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
浏览文件 @
0a32ae69
...
...
@@ -14,6 +14,7 @@
*/
import
image
from
'
@ohos.multimedia.image
'
import
fileio
from
'
@ohos.fileio
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
Image
'
,
function
()
{
...
...
@@ -24,7 +25,6 @@ describe('Image', function () {
})
beforeEach
(
function
()
{
isTimeOut
=
false
;
console
.
info
(
'
beforeEach case
'
);
})
...
...
@@ -38,7 +38,7 @@ describe('Image', function () {
async
function
applyPermission
()
{
console
.
info
(
'
[permission]case applyPermission in
'
);
let
appInfo
=
await
bundle
.
getApplicationInfo
(
'
ohos.acts.multimedia.image
'
,
0
,
100
);
let
appInfo
=
await
bundle
.
getApplicationInfo
(
'
ohos.acts.multimedia.image
.Packing
'
,
0
,
100
);
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
if
(
atManager
!=
null
)
{
let
tokenID
=
appInfo
.
accessTokenId
;
...
...
@@ -66,7 +66,7 @@ describe('Image', function () {
}
}
function
packing
P
romise
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
_p
romise
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -112,7 +112,7 @@ describe('Image', function () {
})
}
function
packing
Callback
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
_cb
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -134,11 +134,17 @@ describe('Image', function () {
done
();
}
else
{
imagePackerApi
.
packing
(
pixelmap
,
arg
,
(
err
,
data
)
=>
{
if
(
err
!=
undefined
)
{
console
.
info
(
`
${
testNum
}
packing failerr:
${
err
}
`
)
expect
(
false
).
assertTrue
();
done
();
return
;
}
var
dataArr
=
new
Uint8Array
(
data
);
console
.
info
(
`
${
testNum
}
dataArr.length=`
+
dataArr
.
length
);
for
(
var
i
=
0
;
i
<
dataArr
.
length
;
i
++
)
{
console
.
info
(
`dataArr[`
+
i
+
`]=`
+
dataArr
[
i
]);
}
console
.
info
(
`
${
testNum
}
dataArr.length=`
+
dataArr
.
length
);
for
(
var
i
=
0
;
i
<
dataArr
.
length
;
i
++
)
{
console
.
info
(
`dataArr[`
+
i
+
`]=`
+
dataArr
[
i
]);
}
expect
(
data
!=
undefined
).
assertTrue
();
done
();
})
...
...
@@ -152,7 +158,7 @@ describe('Image', function () {
})
}
function
packing
CallbackF
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
_cb_f
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -179,13 +185,13 @@ describe('Image', function () {
}
})
.
catch
(
error
=>
{
console
.
log
(
`
${
testNum
}
createpixelmap error:`
+
error
);
console
.
log
(
`
${
testNum
}
createpixelmap error:`
+
error
);
expect
().
assertFail
();
done
();
})
}
function
packing
PromiseF
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing
_promise_f
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -205,6 +211,7 @@ describe('Image', function () {
}
else
{
imagePackerApi
.
packing
(
pixelmap
,
arg
)
.
then
((
data
)
=>
{
expect
(
false
).
assertTrue
();
done
();
}).
catch
(
error
=>
{
console
.
log
(
`
${
testNum
}
error:`
+
error
);
...
...
@@ -229,71 +236,71 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
99
}
packing
P
romise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
packing
_p
romise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_P_002
* @tc.name : SUB_IMAGE_packing_P_002 - Promise -
GR
B565 quality 123
* @tc.name : SUB_IMAGE_packing_P_002 - Promise -
RG
B565 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
123
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_P_003
* @tc.name : SUB_IMAGE_packing_P_003 - Promise -
GR
B565 quality null
* @tc.name : SUB_IMAGE_packing_P_003 - Promise -
RG
B565 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_P_004
* @tc.name : SUB_IMAGE_packing_P_004 - Promise -
GR
B565 format null
* @tc.name : SUB_IMAGE_packing_P_004 - Promise -
RG
B565 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_P_005
* @tc.name : SUB_IMAGE_packing_P_005 - Promise -
GR
B565 wrong format
* @tc.name : SUB_IMAGE_packing_P_005 - Promise -
RG
B565 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/png
"
]
,
quality
:
99
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
})
/**
...
...
@@ -304,11 +311,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
50
}
packing
P
romise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing
_p
romise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
})
/**
...
...
@@ -319,11 +326,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
123
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
})
/**
...
...
@@ -334,11 +341,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
})
/**
...
...
@@ -349,11 +356,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
})
/**
...
...
@@ -364,11 +371,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_P_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/png
"
]
,
quality
:
99
}
packing
PromiseF
ail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
it
(
'
SUB_IMAGE_packing_P_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
})
/**
...
...
@@ -379,72 +386,72 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
99
}
packing
Callback
(
done
,
'
SUB_IMAGE_packing_CB_001
'
,
2
,
packOpts
)
it
(
'
SUB_IMAGE_packing_CB_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
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 -
GR
B565 quality 123
* @tc.name : SUB_IMAGE_packing_CB_002 - callback -
RG
B565 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
123
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_002
'
,
2
,
packOpts
)
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_002
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_CB_003
* @tc.name : SUB_IMAGE_packing_CB_003 - callback -
GR
B565 quality null
* @tc.name : SUB_IMAGE_packing_CB_003 - callback -
RG
B565 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_003
'
,
2
,
packOpts
)
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_003
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_CB_004
* @tc.name : SUB_IMAGE_packing_CB_004 - callback -
GR
B565 format null
* @tc.name : SUB_IMAGE_packing_CB_004 - callback -
RG
B565 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_004
'
,
2
,
packOpts
)
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_004
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_CB_005
* @tc.name : SUB_IMAGE_packing_CB_005 - callback -
GR
B565 wrong format
* @tc.name : SUB_IMAGE_packing_CB_005 - callback -
RG
B565 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/png
"
]
,
quality
:
99
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_005
'
,
2
,
packOpts
)
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_005
'
,
2
,
packOpts
)
})
/**
...
...
@@ -455,11 +462,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
50
}
packing
Callback
(
done
,
'
SUB_IMAGE_packing_CB_006
'
,
5
,
packOpts
)
it
(
'
SUB_IMAGE_packing_CB_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing
_cb
(
done
,
'
SUB_IMAGE_packing_CB_006
'
,
5
,
packOpts
)
})
/**
...
...
@@ -470,12 +477,12 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
,
quality
:
123
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_007
'
,
5
,
packOpts
)
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_007
'
,
5
,
packOpts
)
})
/**
...
...
@@ -486,11 +493,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/jpeg
"
]
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_008
'
,
5
,
packOpts
)
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_008
'
,
5
,
packOpts
)
})
/**
...
...
@@ -501,11 +508,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_009
'
,
5
,
packOpts
)
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_009
'
,
5
,
packOpts
)
})
/**
...
...
@@ -516,11 +523,11 @@ describe('Image', function () {
* 3.call packing
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level :
Level 1
* @tc.level :
level 0
*/
it
(
'
SUB_IMAGE_packing_CB_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
[
"
image/png
"
]
,
quality
:
99
}
packing
CallbackF
ail
(
done
,
'
SUB_IMAGE_packing_CB_010
'
,
5
,
packOpts
)
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing
_cb_f
ail
(
done
,
'
SUB_IMAGE_packing_CB_010
'
,
5
,
packOpts
)
})
})
\ No newline at end of file
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
浏览文件 @
0a32ae69
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录