提交 a2bb1f85 编写于 作者: L lwx1121892

<audio>

Signed-off-by: Nlwx1121892 <liuxueqi3@huawei.com>
上级 3138d586
...@@ -10427,7 +10427,7 @@ describe('audioRenderer', function () { ...@@ -10427,7 +10427,7 @@ describe('audioRenderer', function () {
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
} }
// await audioManager.setVolume(audio.AudioVolumeType.ALARM, lowVol); await audioManager.setVolume(audio.AudioVolumeType.ALARM, lowVol);
let data = await audioManager.isMute(audio.AudioVolumeType.ALARM); let data = await audioManager.isMute(audio.AudioVolumeType.ALARM);
if (data == true) { if (data == true) {
console.log(`${TagFrmwk}: Promise: Is Stream Mute ALARM: SetVolume: PASS:${data}`); console.log(`${TagFrmwk}: Promise: Is Stream Mute ALARM: SetVolume: PASS:${data}`);
...@@ -10473,7 +10473,7 @@ describe('audioRenderer', function () { ...@@ -10473,7 +10473,7 @@ describe('audioRenderer', function () {
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
} }
// await audioManager.setVolume(audio.AudioVolumeType.ALARM, lowVol); await audioManager.setVolume(audio.AudioVolumeType.ALARM, lowVol);
} catch (err) { } catch (err) {
console.log('err :' + JSON.stringify(err)); console.log('err :' + JSON.stringify(err));
expect().assertFail(); expect().assertFail();
...@@ -10517,7 +10517,7 @@ describe('audioRenderer', function () { ...@@ -10517,7 +10517,7 @@ describe('audioRenderer', function () {
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
} }
// await audioManager.setVolume(audio.AudioVolumeType.ACCESSIBILITY, lowVol); await audioManager.setVolume(audio.AudioVolumeType.ACCESSIBILITY, lowVol);
let data = await audioManager.isMute(audio.AudioVolumeType.ACCESSIBILITY); let data = await audioManager.isMute(audio.AudioVolumeType.ACCESSIBILITY);
if (data == true) { if (data == true) {
console.log(`${TagFrmwk}: Promise: Is Stream Mute ACCESSIBILITY: SetVolume: PASS:${data}`); console.log(`${TagFrmwk}: Promise: Is Stream Mute ACCESSIBILITY: SetVolume: PASS:${data}`);
...@@ -10563,7 +10563,7 @@ describe('audioRenderer', function () { ...@@ -10563,7 +10563,7 @@ describe('audioRenderer', function () {
} else { } else {
expect(false).assertTrue(); expect(false).assertTrue();
} }
// await audioManager.setVolume(audio.AudioVolumeType.ACCESSIBILITY, lowVol); await audioManager.setVolume(audio.AudioVolumeType.ACCESSIBILITY, lowVol);
} catch (err) { } catch (err) {
console.log('err :' + JSON.stringify(err)); console.log('err :' + JSON.stringify(err));
expect().assertFail(); expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册