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

!5148 mediaLibrary add DIR_DOWNLOAD test case

Merge pull request !5148 from caochuan/monthly_20220816
...@@ -528,7 +528,7 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -528,7 +528,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
/** /**
* @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_AUDIO
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -549,7 +549,7 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -549,7 +549,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
* @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_005';
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)
...@@ -576,6 +576,21 @@ export default function mediaLibraryTestCallback(abilityContext) { ...@@ -576,6 +576,21 @@ export default function mediaLibraryTestCallback(abilityContext) {
} }
}); });
/**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_007
* @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_DOWNLOAD
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_007';
let dir = mediaLibrary.DirectoryType.DIR_DOWNLOAD;
let val = 'Download/';
await checkGetPublicDirectory(done, testNum, dir, val)
});
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001 * @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
......
...@@ -507,7 +507,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -507,7 +507,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
/** /**
* @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_AUDIO
* @tc.size : MEDIUM * @tc.size : MEDIUM
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
...@@ -522,13 +522,13 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -522,13 +522,13 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
/** /**
* @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_DOCUMENTS
* @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_005';
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)
...@@ -555,6 +555,22 @@ export default function mediaLibraryTestPromiseTest(abilityContext) { ...@@ -555,6 +555,22 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
} }
}); });
/**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_007
* @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_DOWNLOAD
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_007', 0, async function (done) {
let testNum = 'SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_007';
let dir = mediaLibrary.DirectoryType.DIR_DOWNLOAD;
let val = 'Download/';
await checkGetPublicDirectory(done, testNum, dir, val)
});
/** /**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001 * @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_CREATEASSET_001
* @tc.name : createAsset * @tc.name : createAsset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册