Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a3d544c5
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看板
未验证
提交
a3d544c5
编写于
3月 23, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2819 update xts code
Merge pull request !2819 from 潘强标/cherry-pick-1648038770
上级
79116587
f7d1072c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
2 deletion
+19
-2
multimedia/medialibrary/mediaLibrary_js_standard/Test.json
multimedia/medialibrary/mediaLibrary_js_standard/Test.json
+8
-0
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestCallBack.test.js
...ry_js_standard/src/main/js/test/albumTestCallBack.test.js
+6
-1
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestPromise.test.js
...ary_js_standard/src/main/js/test/albumTestPromise.test.js
+5
-1
未找到文件。
multimedia/medialibrary/mediaLibrary_js_standard/Test.json
浏览文件 @
a3d544c5
...
...
@@ -40,6 +40,14 @@
"mkdir /storage/media/100/local/files/Documents"
,
"cp /storage/media/100/local/files/test.dat /storage/media/100/local/files/Documents/test.dat"
,
"cp /storage/media/100/local/files/test2.dat /storage/media/100/local/files/Documents/test2.dat"
,
"mkdir /storage/media/100/local/files/Pictures/DeleteAlbumPro"
,
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/DeleteAlbumPro"
,
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/DeleteAlbumPro"
,
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/DeleteAlbumPro"
,
"mkdir /storage/media/100/local/files/Pictures/DeleteAlbumCallback"
,
"cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/DeleteAlbumCallback"
,
"cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/DeleteAlbumCallback"
,
"cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/DeleteAlbumCallback"
,
"chmod -R 777 /storage/media/100/local/files/*"
,
"chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
,
"killall com.ohos.medialibrary.MediaScannerAbilityA"
,
...
...
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestCallBack.test.js
浏览文件 @
a3d544c5
...
...
@@ -26,6 +26,10 @@ let allTypefetchOp = {
selections
:
''
,
selectionArgs
:
[],
};
let
albumDeletefetchOp
=
{
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'
= ? AND
'
+
fileKeyObj
.
ALBUM_NAME
+
'
= ?
'
,
selectionArgs
:
[
'
Pictures/
'
,
'
DeleteAlbumCallback
'
],
};
let
albumCoverUrifetchOp
=
{
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'
= ? AND
'
+
fileKeyObj
.
ALBUM_NAME
+
'
= ?
'
,
selectionArgs
:
[
'
Pictures/
'
,
'
weixin
'
],
...
...
@@ -840,7 +844,7 @@ describe('albumTestCallBack.test.js', async function () {
it
(
'
SUB_MEDIA_MEDIALIBRARY_GETALBUM_CALLBACK_005_01
'
,
0
,
async
function
(
done
)
{
try
{
const
albumList
=
await
media
.
getAlbums
(
al
lTyp
efetchOp
);
const
albumList
=
await
media
.
getAlbums
(
al
bumDelet
efetchOp
);
const
album
=
albumList
[
0
];
let
fetchFileResult
=
await
album
.
getFileAssets
(
allTypefetchOp
);
...
...
@@ -926,3 +930,4 @@ describe('albumTestCallBack.test.js', async function () {
});
// ------------------------------ 006 test end -------------------------
});
multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/albumTestPromise.test.js
浏览文件 @
a3d544c5
...
...
@@ -26,6 +26,10 @@ let allTypefetchOp = {
selections
:
''
,
selectionArgs
:
[],
};
let
albumDeletefetchOp
=
{
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'
= ? AND
'
+
fileKeyObj
.
ALBUM_NAME
+
'
= ?
'
,
selectionArgs
:
[
'
Pictures/
'
,
'
DeleteAlbumPro
'
],
};
let
albumCoverUrifetchOp
=
{
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'
= ? AND
'
+
fileKeyObj
.
ALBUM_NAME
+
'
= ?
'
,
selectionArgs
:
[
'
Pictures/
'
,
'
weixin
'
],
...
...
@@ -756,7 +760,7 @@ describe('albumTestPromise.test.js', async function () {
it
(
'
SUB_MEDIA_MEDIALIBRARY_GETALBUM_PROMISE_005_01
'
,
0
,
async
function
(
done
)
{
try
{
const
albumList
=
await
media
.
getAlbums
(
al
lTyp
efetchOp
);
const
albumList
=
await
media
.
getAlbums
(
al
bumDelet
efetchOp
);
const
album
=
albumList
[
0
];
let
fetchFileResult
=
await
album
.
getFileAssets
(
allTypefetchOp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录