diff --git a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets index 06fab4edccf6ecf955d837b51b7ec35c9faabd09..7f2cda75c85ab68d447ec8a27db3d020c3a9bd5a 100644 --- a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets +++ b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets @@ -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 diff --git a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets index 396ef3eb0614305fb3c6536b905b145fe920d9e9..6311159e1f51e96d8897a21d9193c37a598810bd 100644 --- a/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets +++ b/multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets @@ -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