diff --git a/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioDecoderFormatCompatibilityPromiseTest.test.js b/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioDecoderFormatCompatibilityPromiseTest.test.js index 86314c550edd1f7b88a1349593d00200d9c4b512..31ba0992e9ef10475d856a8c10792ce1ac0b84af 100644 --- a/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioDecoderFormatCompatibilityPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioDecoderFormatCompatibilityPromiseTest.test.js @@ -2108,7 +2108,7 @@ describe('AudioDecoderFormatCompatibilityPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.codecformat'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioEncoderFormatCompatibilityPromiseTest.test.js b/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioEncoderFormatCompatibilityPromiseTest.test.js index 54cfdadbb9a8e3cdfd8c65c1d8c5733a2961b9fb..c74395995a68da6af6de5e0f11fa3848ff42bb5b 100644 --- a/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioEncoderFormatCompatibilityPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioCodecFormat/src/main/js/test/AudioEncoderFormatCompatibilityPromiseTest.test.js @@ -56,7 +56,7 @@ describe('AudioEncoderFormatCompatibilityPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.codecformat'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatCallbackTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatCallbackTest.test.js index 9b28eb07a6eb2e0e50c8a123fe9826f5b4bf1397..ce21982a2ebe1889f95ba1a89bc95e1fcaf63291 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatCallbackTest.test.js @@ -54,7 +54,7 @@ describe('AudioDecoderFormatCallback', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audiodecoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatPromiseTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatPromiseTest.test.js index aaa45a0e7d4e658f07fa9649922b3c782c12a31d..6a35ac8ddb2b1092af7abddb6be044a33a45c335 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFormatPromiseTest.test.js @@ -54,7 +54,7 @@ describe('AudioDecoderFormatPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audiodecoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js index 4277d6dfbff9026e4213873cddc523383e663ed7..53f7fa82f330fb4873261d834c2716a98e0b2c09 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js @@ -145,7 +145,7 @@ describe('AudioDecoderFuncCallback', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audiodecoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js index e39d9cab4bfa5197ec6fdcaa855d34fef681d364..f6ef65b96351afcf2aa04b1b3fd843c054e622ea 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js @@ -144,7 +144,7 @@ describe('AudioDecoderFuncPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audiodecoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js index 033c69c7845f52021127c7aae12d3e781b37ab84..8887907ea46ff833a08790fda8f43442dc635db1 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js @@ -53,7 +53,7 @@ describe('AudioEncoderFuncCallback', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audioencoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js index 85374873cfdf7ae5320fa09073b4fa9101339445..6e542d9ba568fbf13219727bd384cd878322e192 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js @@ -53,7 +53,7 @@ describe('AudioEncoderFuncPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.audio.audioencoder'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission'); diff --git a/multimedia/media/media_js_standard/videoCodecFormat/src/main/js/test/VideoEncoderFormatPromiseTest.test.js b/multimedia/media/media_js_standard/videoCodecFormat/src/main/js/test/VideoEncoderFormatPromiseTest.test.js index d6323e24d56a520abf79542185ead77d74db86da..937ce4b9c92c6542dc96f928299760a601f29edc 100644 --- a/multimedia/media/media_js_standard/videoCodecFormat/src/main/js/test/VideoEncoderFormatPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoCodecFormat/src/main/js/test/VideoEncoderFormatPromiseTest.test.js @@ -18,6 +18,7 @@ import mediademo from '@ohos.multimedia.mediademo' import fileio from '@ohos.fileio' import featureAbility from '@ohos.ability.featureAbility' import mediaLibrary from '@ohos.multimedia.mediaLibrary' +import * as mediaTestBase from '../../../../../MediaTestBase.js' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('VideoEncoderFormatPromise', function () { @@ -43,7 +44,7 @@ describe('VideoEncoderFormatPromise', function () { let permissionName1 = 'ohos.permission.MEDIA_LOCATION'; let permissionName2 = 'ohos.permission.READ_MEDIA'; let permissionName3 = 'ohos.permission.WRITE_MEDIA'; - permissionNameList = [permissionName1, permissionName2, permissionName3]; + let permissionNameList = [permissionName1, permissionName2, permissionName3]; let appName = 'ohos.acts.multimedia.video.codecformat'; await mediaTestBase.applyPermission(appName, permissionNameList); console.info('beforeAll case after get permission');