未验证 提交 0b9a53b7 编写于 作者: O openharmony_ci 提交者: Gitee

!5276 medialibrary用例名整改

Merge pull request !5276 from 秦莉文/master
...@@ -298,15 +298,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -298,15 +298,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
} }
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = 'image'; let type = 'image';
let count = 1; let count = 1;
...@@ -314,15 +314,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -314,15 +314,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_002';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = 'video'; let type = 'video';
let count = 1; let count = 1;
...@@ -330,15 +330,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -330,15 +330,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_003';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = 'audio'; let type = 'audio';
let count = 1; let count = 1;
...@@ -346,15 +346,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -346,15 +346,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_004';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = 'file'; let type = 'file';
let count = 1; let count = 1;
...@@ -362,15 +362,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -362,15 +362,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_005';
let currentFetchOps = imageAndVideofetchOp; let currentFetchOps = imageAndVideofetchOp;
let type = 'video'; let type = 'video';
let count = 2; let count = 2;
...@@ -379,15 +379,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -379,15 +379,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006';
let currentFetchOps = imageAndVideoAndfilefetchOp; let currentFetchOps = imageAndVideoAndfilefetchOp;
let type = 'file'; let type = 'file';
let count = 3; let count = 3;
...@@ -396,15 +396,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -396,15 +396,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_007 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_007
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_007', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_006';
let currentFetchOps = imageAndVideoAndfileAndAudiofetchOp; let currentFetchOps = imageAndVideoAndfileAndAudiofetchOp;
let type = 'audio'; let type = 'audio';
let count = 4; let count = 4;
...@@ -413,157 +413,157 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -413,157 +413,157 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + '= ?', selections: FILEKEY.MEDIA_TYPE + '= ?',
selectionArgs: [], selectionArgs: [],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_008';
await getFileAssetsZero(done, testNum, currentFetchOps) await getFileAssetsZero(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + 'abc= ?', selections: FILEKEY.MEDIA_TYPE + 'abc= ?',
selectionArgs: [AUDIO_TYPE.toString()], selectionArgs: [AUDIO_TYPE.toString()],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_009';
await getFileAssetsAbnormal(done, testNum, currentFetchOps) await getFileAssetsAbnormal(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + '= ?', selections: FILEKEY.MEDIA_TYPE + '= ?',
selectionArgs: [111], selectionArgs: [111],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_010';
await getFileAssetsZero(done, testNum, currentFetchOps) await getFileAssetsZero(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: 'abc' + '= ?', selections: 'abc' + '= ?',
selectionArgs: [AUDIO_TYPE.toString()], selectionArgs: [AUDIO_TYPE.toString()],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETFILEASSETS_011';
await getFileAssetsAbnormal(done, testNum, currentFetchOps) await getFileAssetsAbnormal(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_CAMERA * @tc.desc : getPublicDirectory DIR_CAMERA
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_001';
let dir = mediaLibrary.DirectoryType.DIR_CAMERA; let dir = mediaLibrary.DirectoryType.DIR_CAMERA;
let val = 'Camera/'; let val = 'Camera/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_VIDEO * @tc.desc : getPublicDirectory DIR_VIDEO
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_002';
let dir = mediaLibrary.DirectoryType.DIR_VIDEO; let dir = mediaLibrary.DirectoryType.DIR_VIDEO;
let val = 'Videos/'; let val = 'Videos/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_003';
let dir = mediaLibrary.DirectoryType.DIR_IMAGE; let dir = mediaLibrary.DirectoryType.DIR_IMAGE;
let val = 'Pictures/'; let val = 'Pictures/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004';
let dir = mediaLibrary.DirectoryType.DIR_AUDIO; let dir = mediaLibrary.DirectoryType.DIR_AUDIO;
let val = 'Audios/'; let val = 'Audios/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_005
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004';
let dir = mediaLibrary.DirectoryType.DIR_DOCUMENTS; let dir = mediaLibrary.DirectoryType.DIR_DOCUMENTS;
let val = 'Documents/'; let val = 'Documents/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_006
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory 110 * @tc.desc : getPublicDirectory 110
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_006', 0, async function (done) {
try { try {
await media.getPublicDirectory(110); await media.getPublicDirectory(110);
console.info('MediaLibraryTest : getPublicDirectory 006 failed'); console.info('MediaLibraryTest : getPublicDirectory 006 failed');
...@@ -577,15 +577,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -577,15 +577,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist) * @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
...@@ -594,15 +594,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -594,15 +594,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (existed) * @tc.desc : Create File Asset image (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_002';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
...@@ -612,15 +612,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -612,15 +612,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset video (does not exist) * @tc.desc : Create File Asset video (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_003';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = VIDEO_TYPE; let type = VIDEO_TYPE;
let name = new Date().getTime() + '.mp4'; let name = new Date().getTime() + '.mp4';
...@@ -629,15 +629,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -629,15 +629,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset video (existed) * @tc.desc : Create File Asset video (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_004';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = VIDEO_TYPE; let type = VIDEO_TYPE;
let name = new Date().getTime() + '.mp4'; let name = new Date().getTime() + '.mp4';
...@@ -646,15 +646,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -646,15 +646,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset audio (does not exist) * @tc.desc : Create File Asset audio (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_005';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = AUDIO_TYPE; let type = AUDIO_TYPE;
let name = new Date().getTime() + '.mp3'; let name = new Date().getTime() + '.mp3';
...@@ -663,15 +663,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -663,15 +663,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset audio (existed) * @tc.desc : Create File Asset audio (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_006';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = AUDIO_TYPE; let type = AUDIO_TYPE;
let name = new Date().getTime() + '.mp3'; let name = new Date().getTime() + '.mp3';
...@@ -680,15 +680,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -680,15 +680,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset file (does not exist) * @tc.desc : Create File Asset file (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_007';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = FILE_TYPE; let type = FILE_TYPE;
let name = new Date().getTime() + '.dat'; let name = new Date().getTime() + '.dat';
...@@ -697,15 +697,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -697,15 +697,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset file (existed) * @tc.desc : Create File Asset file (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_008';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = FILE_TYPE; let type = FILE_TYPE;
let name = new Date().getTime() + '.dat'; let name = new Date().getTime() + '.dat';
...@@ -714,15 +714,15 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -714,15 +714,15 @@ export default function mediaLibraryTestCallback(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist) * @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_009', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_009', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
......
...@@ -277,15 +277,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -277,15 +277,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = 'image'; let type = 'image';
let count = 1; let count = 1;
...@@ -293,15 +293,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -293,15 +293,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_002';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = 'video'; let type = 'video';
let count = 1; let count = 1;
...@@ -309,15 +309,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -309,15 +309,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_003';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = 'audio'; let type = 'audio';
let count = 1; let count = 1;
...@@ -325,15 +325,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -325,15 +325,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_004';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = 'file'; let type = 'file';
let count = 1; let count = 1;
...@@ -341,15 +341,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -341,15 +341,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_005';
let currentFetchOps = imageAndVideofetchOp; let currentFetchOps = imageAndVideofetchOp;
let type = 'video'; let type = 'video';
let count = 2; let count = 2;
...@@ -358,15 +358,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -358,15 +358,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006';
let currentFetchOps = imageAndVideoAndfilefetchOp; let currentFetchOps = imageAndVideoAndfilefetchOp;
let type = 'file'; let type = 'file';
let count = 3; let count = 3;
...@@ -375,15 +375,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -375,15 +375,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_007 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_007
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_007', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_006';
let currentFetchOps = imageAndVideoAndfileAndAudiofetchOp; let currentFetchOps = imageAndVideoAndfileAndAudiofetchOp;
let type = 'audio'; let type = 'audio';
let count = 4; let count = 4;
...@@ -392,157 +392,157 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -392,157 +392,157 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + '= ?', selections: FILEKEY.MEDIA_TYPE + '= ?',
selectionArgs: [], selectionArgs: [],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_008';
await getFileAssetsZero(done, testNum, currentFetchOps) await getFileAssetsZero(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + 'abc= ?', selections: FILEKEY.MEDIA_TYPE + 'abc= ?',
selectionArgs: [AUDIO_TYPE.toString()], selectionArgs: [AUDIO_TYPE.toString()],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_009';
await getFileAssetsAbnormal(done, testNum, currentFetchOps) await getFileAssetsAbnormal(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: FILEKEY.MEDIA_TYPE + '= ?', selections: FILEKEY.MEDIA_TYPE + '= ?',
selectionArgs: [111], selectionArgs: [111],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_010';
await getFileAssetsZero(done, testNum, currentFetchOps) await getFileAssetsZero(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011
* @tc.name : getFileAssets * @tc.name : getFileAssets
* @tc.desc : query all assets * @tc.desc : query all assets
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011', 0, async function (done) {
let currentFetchOps = { let currentFetchOps = {
selections: 'abc' + '= ?', selections: 'abc' + '= ?',
selectionArgs: [AUDIO_TYPE.toString()], selectionArgs: [AUDIO_TYPE.toString()],
}; };
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETFILEASSETS_011';
await getFileAssetsAbnormal(done, testNum, currentFetchOps) await getFileAssetsAbnormal(done, testNum, currentFetchOps)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_CAMERA * @tc.desc : getPublicDirectory DIR_CAMERA
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_001';
let dir = mediaLibrary.DirectoryType.DIR_CAMERA; let dir = mediaLibrary.DirectoryType.DIR_CAMERA;
let val = 'Camera/'; let val = 'Camera/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_VIDEO * @tc.desc : getPublicDirectory DIR_VIDEO
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_002';
let dir = mediaLibrary.DirectoryType.DIR_VIDEO; let dir = mediaLibrary.DirectoryType.DIR_VIDEO;
let val = 'Videos/'; let val = 'Videos/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_003';
let dir = mediaLibrary.DirectoryType.DIR_IMAGE; let dir = mediaLibrary.DirectoryType.DIR_IMAGE;
let val = 'Pictures/'; let val = 'Pictures/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004';
let dir = mediaLibrary.DirectoryType.DIR_AUDIO; let dir = mediaLibrary.DirectoryType.DIR_AUDIO;
let val = 'Audios/'; let val = 'Audios/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_005
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE * @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004';
let dir = mediaLibrary.DirectoryType.DIR_DOCUMENTS; let dir = mediaLibrary.DirectoryType.DIR_DOCUMENTS;
let val = 'Documents/'; let val = 'Documents/';
await checkGetPublicDirectory(done, testNum, dir, val) await checkGetPublicDirectory(done, testNum, dir, val)
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_006
* @tc.name : getPublicDirectory * @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory 110 * @tc.desc : getPublicDirectory 110
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_006', 0, async function (done) {
try { try {
await media.getPublicDirectory(110); await media.getPublicDirectory(110);
console.info('MediaLibraryTest : getPublicDirectory 006 failed'); console.info('MediaLibraryTest : getPublicDirectory 006 failed');
...@@ -556,15 +556,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -556,15 +556,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist) * @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
...@@ -573,15 +573,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -573,15 +573,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (existed) * @tc.desc : Create File Asset image (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_002';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
...@@ -591,15 +591,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -591,15 +591,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset video (does not exist) * @tc.desc : Create File Asset video (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_003';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = VIDEO_TYPE; let type = VIDEO_TYPE;
let name = new Date().getTime() + '.mp4'; let name = new Date().getTime() + '.mp4';
...@@ -608,15 +608,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -608,15 +608,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset video (existed) * @tc.desc : Create File Asset video (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_004';
let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE); let currentFetchOps = fetchOps(testNum, 'Videos/Static/', VIDEO_TYPE);
let type = VIDEO_TYPE; let type = VIDEO_TYPE;
let name = new Date().getTime() + '.mp4'; let name = new Date().getTime() + '.mp4';
...@@ -625,15 +625,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -625,15 +625,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset audio (does not exist) * @tc.desc : Create File Asset audio (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_005';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = AUDIO_TYPE; let type = AUDIO_TYPE;
let name = new Date().getTime() + '.mp3'; let name = new Date().getTime() + '.mp3';
...@@ -642,15 +642,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -642,15 +642,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset audio (existed) * @tc.desc : Create File Asset audio (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_006';
let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE); let currentFetchOps = fetchOps(testNum, 'Audios/Static/', AUDIO_TYPE);
let type = AUDIO_TYPE; let type = AUDIO_TYPE;
let name = new Date().getTime() + '.mp3'; let name = new Date().getTime() + '.mp3';
...@@ -659,15 +659,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -659,15 +659,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset file (does not exist) * @tc.desc : Create File Asset file (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_007';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = FILE_TYPE; let type = FILE_TYPE;
let name = new Date().getTime() + '.dat'; let name = new Date().getTime() + '.dat';
...@@ -676,15 +676,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -676,15 +676,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset file (existed) * @tc.desc : Create File Asset file (existed)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_008';
let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE); let currentFetchOps = fetchOps(testNum, 'Documents/Static/', FILE_TYPE);
let type = FILE_TYPE; let type = FILE_TYPE;
let name = new Date().getTime() + '.dat'; let name = new Date().getTime() + '.dat';
...@@ -693,15 +693,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -693,15 +693,15 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
* @tc.desc : Create File Asset image (does not exist) * @tc.desc : Create File Asset image (does not exist)
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_009', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_009', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001'; let testNum = 'SUB_MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001';
let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE); let currentFetchOps = fetchOps(testNum, 'Pictures/Static/', IMAGE_TYPE);
let type = IMAGE_TYPE; let type = IMAGE_TYPE;
let name = new Date().getTime() + '.jpg'; let name = new Date().getTime() + '.jpg';
......
...@@ -460,14 +460,14 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext) { ...@@ -460,14 +460,14 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext) {
}); });
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_RELEASE_001 * @tc.number : SUB_MEDIA_MIDIALIBRARY_PROMISE_RELEASE_001
* @tc.name : release * @tc.name : release
* @tc.desc : Release MediaLibrary instance * @tc.desc : Release MediaLibrary instance
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_RELEASE_001', 0, async function (done) { it('SUB_MEDIA_MIDIALIBRARY_PROMISE_RELEASE_001', 0, async function (done) {
try { try {
await media.release(); await media.release();
console.info('MediaLibraryTest : release 001 passed'); console.info('MediaLibraryTest : release 001 passed');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册