提交 21290ca2 编写于 作者: A AOL

fixed f0e492e from https://gitee.com/magekkkk/xts_acts/pulls/7926

update xts for voice volume can not mute
Signed-off-by: NAOL <lixin113@huawei.com>
上级 e553ea39
......@@ -3067,7 +3067,7 @@ export default function audioFramework() {
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();
......@@ -3115,7 +3115,7 @@ export default function audioFramework() {
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) {
......@@ -3163,7 +3163,7 @@ export default function audioFramework() {
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();
......@@ -3207,7 +3207,7 @@ export default function audioFramework() {
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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册