提交 278b4dda 编写于 作者: C caochuan

mediaLibrary add DIR_DOWNLOAD test case

Signed-off-by: Ncaochuan <caochuan@huawei.com>
上级 357e4315
......@@ -528,7 +528,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
/**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_CALLBACK_GETPUBLICDIRECTORY_004
* @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.desc : getPublicDirectory DIR_AUDIO
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
......@@ -549,7 +549,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
* @tc.level : Level 0
*/
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 val = 'Documents/';
await checkGetPublicDirectory(done, testNum, dir, val)
......@@ -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.name : createAsset
......
......@@ -507,7 +507,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
/**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_004
* @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.desc : getPublicDirectory DIR_AUDIO
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
......@@ -522,13 +522,13 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
/**
* @tc.number : SUB__MEDIA_MIDIALIBRARY_PROMISE_GETPUBLICDIRECTORY_005
* @tc.name : getPublicDirectory
* @tc.desc : getPublicDirectory DIR_IMAGE
* @tc.desc : getPublicDirectory DIR_DOCUMENTS
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
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 val = 'Documents/';
await checkGetPublicDirectory(done, testNum, dir, val)
......@@ -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.name : createAsset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册