Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
81f0f3ce
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看板
提交
81f0f3ce
编写于
8月 02, 2022
作者:
L
lwx1121892
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<liuxueqi3@huawei.com>
Signed-off-by:
N
lwx1121892
<
liuxueqi3@huawei.com
>
上级
a3b205f7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
43 deletion
+20
-43
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
+0
-1
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
...tandard/imageDecodeOptions/src/main/js/test/image.test.js
+3
-37
multimedia/image/image_js_standard/imageExif/Test.json
multimedia/image/image_js_standard/imageExif/Test.json
+1
-0
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+5
-1
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+6
-3
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
...image_js_standard/imageWebp/src/main/js/test/webp.test.js
+5
-1
未找到文件。
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
浏览文件 @
81f0f3ce
...
...
@@ -56,7 +56,6 @@ export default function Image_test() {
console
.
info
(
'
globalpixelmap release fail
'
);
}
}
await
fileio
.
close
(
fdNumber
);
console
.
info
(
'
afterEach case
'
);
})
...
...
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
浏览文件 @
81f0f3ce
...
...
@@ -37,9 +37,8 @@ export default function Image_test() {
}).
catch
((
err
)
=>
{
console
.
info
(
"
image case open fd err
"
+
err
);
})
}
}
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
})
...
...
@@ -57,7 +56,6 @@ export default function Image_test() {
console
.
info
(
'
globalpixelmap release fail
'
);
}
}
await
fileio
.
close
(
fdNumber
);
console
.
info
(
'
afterEach case
'
);
})
...
...
@@ -111,7 +109,6 @@ export default function Image_test() {
}
})
/**
* @tc.number : TC_062-1
* @tc.name : packing ImageSource - callback
...
...
@@ -140,7 +137,7 @@ export default function Image_test() {
}
else
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
1
}
imagePackerApi
.
packing
(
imageSourceApi
,
packOpts
,
(
err
,
data
)
=>
{
console
.
info
(
'
TC_062-1 success
'
);
console
.
info
(
'
TC_062-1 success
'
+
JSON
.
stringify
(
data
)
);
expect
(
data
!=
undefined
).
assertTrue
();
done
();
})
...
...
@@ -734,7 +731,6 @@ export default function Image_test() {
index
:
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-3 success
'
);
console
.
info
(
'
TC_050-3 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -784,7 +780,6 @@ export default function Image_test() {
index
:
-
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-4 success
'
);
console
.
info
(
'
TC_050-4 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -834,7 +829,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
done
();
if
(
err
){
console
.
info
(
'
TC_050-5 success
'
);
console
.
info
(
'
TC_050-5 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -884,7 +878,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-6 success
'
);
console
.
info
(
'
TC_050-6 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -934,7 +927,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-7 success
'
);
console
.
info
(
'
TC_050-7 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1137,7 +1129,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-11 success
'
);
console
.
info
(
'
TC_050-11 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1187,7 +1178,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-12 success
'
);
console
.
info
(
'
TC_050-12 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1237,7 +1227,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_050-13 success
'
);
console
.
info
(
'
TC_050-13 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1527,7 +1516,6 @@ export default function Image_test() {
index
:
-
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-4 success
'
);
console
.
info
(
'
TC_067-4 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1571,7 +1559,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-5 success
'
);
console
.
info
(
'
TC_067-5 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1615,7 +1602,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-6 success
'
);
console
.
info
(
'
TC_067-6 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1659,7 +1645,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-7 success
'
);
console
.
info
(
'
TC_067-7 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1837,7 +1822,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-11 success
'
);
console
.
info
(
'
TC_067-11createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1881,7 +1865,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-12 success
'
);
console
.
info
(
'
TC_067-12 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -1925,7 +1908,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_067-13 success
'
);
console
.
info
(
'
TC_067-13 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2158,7 +2140,6 @@ export default function Image_test() {
index
:
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-3 success
'
);
console
.
info
(
'
TC_068-3 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2202,7 +2183,6 @@ export default function Image_test() {
index
:
-
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-4 success
'
);
console
.
info
(
'
TC_068-4 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2246,7 +2226,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-5 success
'
);
console
.
info
(
'
TC_068-5 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2290,7 +2269,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-6 success
'
);
console
.
info
(
'
TC_068-6 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2334,7 +2312,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-7 success
'
);
console
.
info
(
'
TC_068-7 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2514,7 +2491,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-11 success
'
);
console
.
info
(
'
TC_068-11 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2558,7 +2534,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-12 success
'
);
console
.
info
(
'
TC_068-12 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2601,7 +2576,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_068-13 success
'
);
console
.
info
(
'
TC_068-13 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2771,7 +2745,6 @@ export default function Image_test() {
index
:
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-3 success
'
);
console
.
info
(
'
TC_163-3 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2816,7 +2789,6 @@ export default function Image_test() {
index
:
-
1
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-4 success
'
);
console
.
info
(
'
TC_163-4 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2861,7 +2833,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-5 success
'
);
console
.
info
(
'
TC_163-5 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2906,7 +2877,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-6 success
'
);
console
.
info
(
'
TC_163-6 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -2951,7 +2921,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-7 success
'
);
console
.
info
(
'
TC_163-7 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -3135,7 +3104,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-11 success
'
);
console
.
info
(
'
TC_163-11 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -3180,7 +3148,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-12 success
'
);
console
.
info
(
'
TC_163-12 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
@@ -3223,7 +3190,6 @@ export default function Image_test() {
index
:
0
};
imageSourceApi
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
globalpixelmap
=
pixelmap
;
if
(
err
){
console
.
info
(
'
TC_163-13 success
'
);
console
.
info
(
'
TC_163-13 createPixelMap error
'
+
JSON
.
stringify
(
err
));
...
...
multimedia/image/image_js_standard/imageExif/Test.json
浏览文件 @
81f0f3ce
...
...
@@ -15,6 +15,7 @@
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/haps/entry/files/"
,
"chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/haps/entry/files/*"
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
81f0f3ce
...
...
@@ -50,7 +50,11 @@ describe('Image', function () {
if
(
globalpixelmap
!=
undefined
)
{
await
globalpixelmap
.
release
();
}
await
fileio
.
close
(
fdNumber
);
await
fileio
.
close
(
fdNumber
).
then
(
function
(){
console
.
info
(
"
close file succeed
"
);
}).
catch
(
function
(
err
){
console
.
info
(
"
close file failed with error:
"
+
err
);
});
console
.
info
(
'
afterEach case
'
);
})
...
...
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
81f0f3ce
...
...
@@ -43,12 +43,15 @@ describe('Image', function () {
})
beforeEach
(
function
()
{
console
.
info
(
'
beforeEach case
'
);
})
afterEach
(
function
()
{
await
fileio
.
close
(
fdNumber
);
afterEach
(
async
function
()
{
await
fileio
.
close
(
fdNumber
).
then
(
function
(){
console
.
info
(
"
close file succeed
"
);
}).
catch
(
function
(
err
){
console
.
info
(
"
close file failed with error:
"
+
err
);
});
console
.
info
(
'
afterEach case
'
);
})
...
...
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
81f0f3ce
...
...
@@ -46,7 +46,11 @@ describe('Image', function () {
})
afterEach
(
async
function
()
{
await
fileio
.
close
(
fdNumber
);
await
fileio
.
close
(
fdNumber
).
then
(
function
(){
console
.
info
(
"
close file succeed
"
);
}).
catch
(
function
(
err
){
console
.
info
(
"
close file failed with error:
"
+
err
);
});
console
.
info
(
'
afterEach case
'
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录