Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
09a18c6e
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看板
未验证
提交
09a18c6e
编写于
8月 16, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 16, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4983 Change test.json fix scanner
Merge pull request !4983 from caochuan/master
上级
9e656bcf
7eab424a
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
14 addition
and
12 deletion
+14
-12
multimedia/medialibrary/mediaLibrary_album/Test.json
multimedia/medialibrary/mediaLibrary_album/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_favorite/Test.json
multimedia/medialibrary/mediaLibrary_favorite/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_file/Test.json
multimedia/medialibrary/mediaLibrary_file/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json
multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
+1
-0
multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets
...ail/entry/src/main/ets/test/getThumbnailCallback.test.ets
+4
-8
multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets
...nail/entry/src/main/ets/test/getThumbnailPromise.test.ets
+2
-4
未找到文件。
multimedia/medialibrary/mediaLibrary_album/Test.json
浏览文件 @
09a18c6e
...
...
@@ -45,6 +45,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_favorite/Test.json
浏览文件 @
09a18c6e
...
...
@@ -46,6 +46,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_file/Test.json
浏览文件 @
09a18c6e
...
...
@@ -51,6 +51,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_fileAsset/Test.json
浏览文件 @
09a18c6e
...
...
@@ -51,6 +51,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_fileAssetUri/Test.json
浏览文件 @
09a18c6e
...
...
@@ -46,6 +46,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_fileKey/Test.json
浏览文件 @
09a18c6e
...
...
@@ -42,6 +42,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_fileResult/Test.json
浏览文件 @
09a18c6e
...
...
@@ -47,6 +47,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_getThumbnail/Test.json
浏览文件 @
09a18c6e
...
...
@@ -43,6 +43,7 @@
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"hilog -Q pidoff"
,
"hilog -p off"
,
"hilog -b I"
,
"hilog -b D -D 0xD002B70"
,
"scanner_demo"
,
"sleep 10"
...
...
multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailCallback.test.ets
浏览文件 @
09a18c6e
...
...
@@ -58,20 +58,16 @@ export default function getThumbnailCallback(abilityContext) {
size
=
{
width
:
256
,
height
:
256
};
asset
.
getThumbnail
(
async
(
err
,
pixelmap
)
=>
{
await
pixelmap
.
getImageInfo
((
err
,
info
)
=>
{
console
.
info
(
`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`
);
console
.
info
(
`${testNum}:: param width ${size.width},param height: ${size.height}`
);
expect
(
info
.
size
.
width
==
size
.
width
)
.
assertTrue
();
expect
(
info
.
size
.
height
==
size
.
height
)
.
assertTrue
();
expect
(
info
.
size
.
width
)
.
assertEqual
(
size
.
width
);
expect
(
info
.
size
.
height
)
.
assertEqual
(
size
.
height
);
done
();
});
})
}
else
{
asset
.
getThumbnail
(
size
,
async
(
err
,
pixelmap
)
=>
{
await
pixelmap
.
getImageInfo
((
err
,
info
)
=>
{
console
.
info
(
`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`
);
console
.
info
(
`${testNum}:: param width ${size.width},param height: ${size.height}`
);
expect
(
info
.
size
.
width
==
size
.
width
)
.
assertTrue
();
expect
(
info
.
size
.
height
==
size
.
height
)
.
assertTrue
();
expect
(
info
.
size
.
width
)
.
assertEqual
(
size
.
width
);
expect
(
info
.
size
.
height
)
.
assertEqual
(
size
.
height
);
done
();
});
})
...
...
multimedia/medialibrary/mediaLibrary_getThumbnail/entry/src/main/ets/test/getThumbnailPromise.test.ets
浏览文件 @
09a18c6e
...
...
@@ -63,10 +63,8 @@ export default function getThumbnailPromise(abilityContext) {
pixelmap
=
await
asset
.
getThumbnail
(
size
)
}
let
info
=
await
pixelmap
.
getImageInfo
();
console
.
info
(
`${testNum}:: pixel width ${info.size.width},pixel height: ${info.size.height}`
);
console
.
info
(
`${testNum}:: param width ${size.width},param height: ${size.height}`
);
expect
(
info
.
size
.
width
==
size
.
width
)
.
assertTrue
();
expect
(
info
.
size
.
height
==
size
.
height
)
.
assertTrue
();
expect
(
info
.
size
.
width
)
.
assertEqual
(
size
.
width
);
expect
(
info
.
size
.
height
)
.
assertEqual
(
size
.
height
);
done
();
}
catch
(
error
)
{
console
.
info
(
`${testNum}:: error :${error}`
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录