From d88e394ae69bd3064e61bba59c43eed2acc3c6c4 Mon Sep 17 00:00:00 2001 From: lwx1121892 Date: Wed, 22 Feb 2023 10:28:36 +0800 Subject: [PATCH] modify mute Signed-off-by: lwx1121892 --- .../audioManager/src/main/js/test/AudioFramework.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js index 3480aeeda..3f263a707 100755 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js @@ -3062,7 +3062,7 @@ describe('audioFramework', function () { await audioManager.mute(audio.AudioVolumeType.VOICE_CALL, true); let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_CALL) console.info("AudioFrameworkTest: value is " + value); - if (value == 0) { + if (value == highVol) { expect(true).assertTrue(); } else { expect(false).assertTrue(); @@ -3110,7 +3110,7 @@ describe('audioFramework', function () { console.error(`Failed to obtain the volume. ${err.message}`); expect(false).assertTrue(); done(); - } else if (value == 0) { + } else if (value == highVol) { try { await audioManager.setVolume(audio.AudioVolumeType.VOICE_CALL, lowVol); } catch (err) { @@ -3158,7 +3158,7 @@ describe('audioFramework', function () { console.log(`${TagFrmwk}: Set Stream Mute: VOICE_ASSISTANT: Promise: TRUE`); let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_ASSISTANT); console.info("AudioFrameworkTest: value is " + value); - if (value == 0) { + if (value == highVol) { expect(true).assertTrue(); } else { expect(false).assertTrue(); @@ -3202,7 +3202,7 @@ describe('audioFramework', function () { console.log(`${TagFrmwk}: Set Stream Mute: VOICE_ASSISTANT: Callback : SetVolume`); try { let value = await audioManager.getVolume(audio.AudioVolumeType.VOICE_ASSISTANT); - if (value == 0) { + if (value == highVol) { console.info("AudioFrameworkTest: value is " + value); expect(true).assertTrue(); } else { -- GitLab