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 2d92d7a9eced25683c3a13d135aec366f0e2b3fa..00317f2461cc4d4bd601e22c7f39eb3d7317221e 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 @@ -93,7 +93,7 @@ export default function audioRendererTest() { } catch (error) { if (error) { console.log(`${TagFrmwkRender}: On catch error, error: [${error.code}, ${error.message}]`); - expect(Number(error.code)).assertEqual(INVALID_INPUT_PARAMETER_401); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_401); done(); } else { expect(false).assertTrue(); @@ -125,7 +125,7 @@ export default function audioRendererTest() { } catch (error) { if (error) { console.log(`${TagFrmwkRender}: On catch error, error: [${error.code}, ${error.message}]`); - expect(Number(error.code)).assertEqual(INVALID_INPUT_PARAMETER_6800101); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); done(); } else { expect(false).assertTrue(); @@ -158,7 +158,7 @@ export default function audioRendererTest() { } catch (error) { if (error) { console.log(`${TagFrmwkRender}: On: catch error, error: [${error.code}, ${error.message}]`); - expect(Number(error.code)).assertEqual(INVALID_INPUT_PARAMETER_401); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_401); done(); } else { expect(false).assertTrue(); @@ -191,7 +191,7 @@ export default function audioRendererTest() { } catch (error) { if (error) { console.log(`${TagFrmwkRender}:On catch error, error: [${error.code}, ${error.message}]`); - expect(Number(error.code)).assertEqual(INVALID_INPUT_PARAMETER_6800101); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); done(); } else { expect(false).assertTrue(); @@ -257,7 +257,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(INVALID_INPUT_PARAMETER_6800101); + expect(Number(error.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); done(); } else { expect(false).assertTrue();