diff --git a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets index 9a35457baba00d84a53723aeeac911551cfdda80..dabfb99eae5727fa691984a02d37aeb81798fa3f 100644 --- a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets +++ b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets @@ -373,14 +373,14 @@ export default function audioManagerTest() { try { await audioVolumeGroupManager.getSystemVolumeInDb(audio.AudioVolumeType.MEDIA, '123', audio.DeviceType.SPEAKER) .then((data) => { - console.info(`####getSystemVolumeInDb :SUCCESS ${data}`); + console.info(`getSystemVolumeInDb :SUCCESS ${data}`); expect(false).assertTrue(); done(); }) .catch((error) => { - if (error.code == env.INVALID_INPUT_PARAMETER_6800101) { - console.log(`${TagFrmwk}: ####getSystemVolumeInDb : error ${error.message} ${error.code}`); - expect(true).assertTrue(); + if (error) { + console.log(`${TagFrmwk}:getSystemVolumeInDb error: ${error.message} ${error.code}`); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); done(); } else { expect(false).assertTrue(); @@ -388,7 +388,7 @@ export default function audioManagerTest() { } }); } catch (error) { - console.info(`SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_GETSYSTEMVOLUMEINDB_PROMISE_1000: error ${error.message}, code ${error.code}`); + console.info(`GETSYSTEMVOLUMEINDB error ${error.message}, code ${error.code}`); expect(false).assertTrue(); done(); } diff --git a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets index ccb2e6a703c0ebd7ebf91fcf0bc99702ba7d5071..1491e014869f95c87bad95e62e6a186d1d317529 100644 --- a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets +++ b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets @@ -311,20 +311,19 @@ export default function audioRendererTest() { let samplingrate = 0; try{ await audioRen.setRendererSamplingRate(samplingrate); - console.info(`${TagFrmwkRender}: ####setRendererSamplingRate: success`); }catch(error) { if (error.code == env.UNSUPORTED_OPTION_6800104){ - console.log(`${TagFrmwkRender}: ####setRendererSamplingRate: catch error: [${error.code}, ${error.message}]`); + console.log(`${TagFrmwkRender}: setRendererSamplingRate: catch error: [${error.code}, ${error.message}]`); try{ await audioRen.getRendererSamplingRate().then((data) => { console.info(`${TagFrmwkRender}: getRendererSamplingRate :SUCCESS ${data}`); expect(data).assertEqual(env.SAMPLING_RATE_44100); }).catch ((error)=>{ - console.log("${TagFrmwkRender}: #####getRendererSamplingRate : error = " + error); + console.log("${TagFrmwkRender}: getRendererSamplingRate : error = " + error); expect(false).assertTrue(); }); }catch(error){ - console.log("####setRendererSamplingRate: catch error = " + error); + console.log("setRendererSamplingRate: catch error = " + error); } done(); } else { diff --git a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/OnOffOutputDeviceChange.test.ets b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/OnOffOutputDeviceChange.test.ets index 00317f2461cc4d4bd601e22c7f39eb3d7317221e..a28ef16220f7a5986ae7d6f5a3113febc9df7d3c 100644 --- a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/OnOffOutputDeviceChange.test.ets +++ b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/OnOffOutputDeviceChange.test.ets @@ -224,7 +224,7 @@ export default function audioRendererTest() { } catch (error) { if (error) { console.log(`${TagFrmwkRender}: Off catch error, error: [${error.code}, ${error.message}]`); - expect(Number(error.code)).assertEqual(UNSUPORTED_OPTION_6800104); + expect(Number(error.code)).assertEqual(env.UNSUPORTED_OPTION_6800104); done(); } else { expect(false).assertTrue();