diff --git a/multimedia/audio/audio_js_standard/AudioCapturer/Test.json b/multimedia/audio/audio_js_standard/AudioCapturer/Test.json index f17c906ad59e8502f0f4b010c0fcf400b69119db..f6254d28aebb3560dcd7b893183079440f0938b6 100644 --- a/multimedia/audio/audio_js_standard/AudioCapturer/Test.json +++ b/multimedia/audio/audio_js_standard/AudioCapturer/Test.json @@ -20,8 +20,6 @@ "type": "ShellKit", "run-command": [ "hilog -Q pidoff", - "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files", - "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry", "power-shell wakeup", "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", "power-shell setmode 602" @@ -35,20 +33,6 @@ "type": "PushKit", "pre-push": [], "push": [ - "./resource/audio/audioManager/Believer.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/Believer60s.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-8000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-16000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-32000-1SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-44100-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-64000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-1C-96000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-11025-1SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-12000-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-16000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-22050-2SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-24000-3SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/", - "./resource/audio/audioManager/StarWars10s-2C-48000-4SW.wav ->/data/app/el2/100/base/ohos.acts.multimedia.audio.audiocapturer/haps/entry/files/" ] } ] diff --git a/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js b/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js index aeab86edbe5eed6c42b219fbebbacae8a8fe0da5..34e767e88d53f6279aede3257d441c4440cd654b 100644 --- a/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js +++ b/multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js @@ -1916,7 +1916,6 @@ describe('audioRenderer', function () { console.info("AudioFrameworkRenderLog: on'audioInterrupt' SUCCESS "); interrput_flag = true; } - expect(interrput_flag).assertTrue(); }); let a = await audioRen.setInterruptMode(audio.InterruptMode.INDEPENDENT_MODE); @@ -1960,6 +1959,7 @@ describe('audioRenderer', function () { await sleep(2000); await audioRen.release(); await audioRen_interrupt.release(); + expect(interrput_flag).assertFalse(); } catch (error) { console.log("SUB_MULTIMEDIA_AUDIO_RENDERER_INTERUPT_AUDIO_0500 : error = " + error); @@ -2014,7 +2014,6 @@ describe('audioRenderer', function () { console.info("AudioFrameworkRenderLog: on'audioInterrupt' SUCCESS "); interrput_flag = true; } - expect(interrput_flag).assertTrue(); }); let a = await audioRen.setInterruptMode(audio.InterruptMode.INDEPENDENT_MODE); @@ -2058,6 +2057,7 @@ describe('audioRenderer', function () { await sleep(2000); await audioRen.release(); await audioRen_interrupt.release(); + expect(interrput_flag).assertFalse(); } catch (error) { console.log("SUB_MULTIMEDIA_AUDIO_RENDERER_INTERUPT_AUDIO_0600 : error = " + error);