diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js index 6a7fe66194b3f2b40acb1eb84cfbd2d8939682b1..1098511da51a782ae03c911691466bee0f7a4604 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js @@ -458,7 +458,8 @@ describe('PlayerLocalTestAudioFUNC', function () { console.info('case wait for next player'); } playAudioSource(fdPath, DURATION_TIME, PLAY_TIME, true, waitForDone); - mediaTestBase.msleep(1000); + await mediaTestBase.msleepAsync(1000).then( + () => {}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); playAudioSource(fdPath, DURATION_TIME, PLAY_TIME, true, done); }) }) diff --git a/multimedia/media/media_js_standard/audioRecorder/Test.json b/multimedia/media/media_js_standard/audioRecorder/Test.json index 73d165da86b0f24111a6b175645c71e93202fe1f..21b2f993a6aebb7c14acfa1fcf692b8c0865f8fd 100644 --- a/multimedia/media/media_js_standard/audioRecorder/Test.json +++ b/multimedia/media/media_js_standard/audioRecorder/Test.json @@ -10,7 +10,7 @@ { "type": "ShellKit", "run-command": [ - "rm -rf /storage/media/100/local/files/Videos/audio_*", + "rm -rf /storage/media/100/local/files/Audios/audio_*", "power-shell setmode 602" ], "teardown-command":[ diff --git a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js index 77a979315642a20adb5fafca3c858bd5a01ee8f1..8389851c9783d84467245586ffdd1cd1f31f5ebc 100644 --- a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js @@ -626,7 +626,7 @@ describe('RecorderLocalTestAudioFUNC', function () { let trackArray = videoRecorderBase.getTrackArray(ONLYAUDIO_TYPE, audioConfig); initAudioRecorder(); let mySteps = new Array(PRE_STATE, START_STATE, PAUSE_STATE, RESUME_STATE, PAUSE_STATE, - STOP_STATE, RELEASE_STATE, CHECK_STATE, trackArray, RECORDER_TIME, END_STATE); + STOP_STATE, RELEASE_STATE, CHECK_STATE, trackArray, RECORDER_TIME * 2, END_STATE); setCallback(mySteps, done); audioRecorder.prepare(audioConfig); }) diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js index b769301956f6168d08ff977911439d87f963d18d..7f19fdb1173e180e14fb565046bd5d5f76bc554a 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js @@ -1233,7 +1233,7 @@ describe('VideoPlayerFuncPromiseTest', function () { expect(videoPlayer.state).assertEqual('playing'); }, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); endTime = videoPlayer.currentTime; - checkTime(PLAY_TIME * 2, (endTime - startTime), DELTA_TIME); + checkTime(PLAY_TIME * 2, (endTime - startTime), DELTA_TIME * 2); }) }) } \ No newline at end of file