未验证 提交 2790ea82 编写于 作者: O openharmony_ci 提交者: Gitee

!7684 【媒体子系统】audio修改getmute返回结果

Merge pull request !7684 from 秦莉文/master
......@@ -3062,7 +3062,7 @@ describe('audioFramework', function () {
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();
......@@ -3110,7 +3110,7 @@ describe('audioFramework', function () {
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) {
......@@ -3158,7 +3158,7 @@ describe('audioFramework', function () {
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();
......@@ -3202,7 +3202,7 @@ describe('audioFramework', function () {
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.
先完成此消息的编辑!
想要评论请 注册