提交 4b43952d 编写于 作者: P panqiangbiao

update xts code

Signed-off-by: Npanqiangbiao <panqiangbiao@huawei.com>
上级 3e5575fb
......@@ -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",
......
......@@ -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(allTypefetchOp);
const albumList = await media.getAlbums(albumDeletefetchOp);
const album = albumList[0];
let fetchFileResult = await album.getFileAssets(allTypefetchOp);
......@@ -926,3 +930,4 @@ describe('albumTestCallBack.test.js', async function () {
});
// ------------------------------ 006 test end -------------------------
});
......@@ -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(allTypefetchOp);
const albumList = await media.getAlbums(albumDeletefetchOp);
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.
先完成此消息的编辑!
想要评论请 注册