diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js index 689fb5fdd2247f8d33645f50b8f15cbc5342dcdd..daee16d9f00c2a9f5b8301f97301b86b46258f88 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js @@ -476,8 +476,16 @@ export default function audioManagerApi9() { */ it('SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_ON_VOLUMECHANGE_0100', 3, async function (done) { let audioVolumeManager = audioManager.getVolumeManager(); - audioVolumeManager.on('volumeChange', (VolumeEvent) => { }); - expect(true).assertTrue(); + audioVolumeManager.on('volumeChange', (VolumeEvent) => { + console.info(`SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_ON_VOLUMECHANGE_0100 VolumeEvent.volumeType: ${VolumeEvent.volumeType}, VolumeEvent.volume:${VolumeEvent.volume}, VolumeEvent.updateUi:${VolumeEvent.updateUi}`); + expect(VolumeEvent.volumeType).assertEqual(audio.AudioVolumeType.MEDIA); + expect(VolumeEvent.volume).assertEqual(minVolume); + expect(VolumeEvent.updateUi).assertEqual(false); + }); + let maxVolume = await audioManager.getMaxVolume(audio.AudioVolumeType.MEDIA) + let minVolume = await audioManager.getMinVolume(audio.AudioVolumeType.MEDIA) + await audioManager.setVolume(audio.AudioVolumeType.MEDIA, maxVolume) + await audioManager.setVolume(audio.AudioVolumeType.MEDIA, minVolume) done(); })