Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5bb710df
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5bb710df
编写于
8月 24, 2022
作者:
Q
qinliwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<audio用例修改>
Signed-off-by:
N
qinliwen
<
qinliwen3@huawei.com
>
上级
5fb595f5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
13 deletion
+12
-13
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+12
-13
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
5bb710df
...
...
@@ -2475,6 +2475,7 @@ describe('audioManager', function () {
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audioMedia
,
false
,
(
err
)
=>
{
...
...
@@ -2503,7 +2504,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Media: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -2513,9 +2513,8 @@ describe('audioManager', function () {
});
}
done
();
});
});
});
})
/* *
...
...
@@ -2581,6 +2580,8 @@ describe('audioManager', function () {
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audioRingtone
,
false
,
(
err
)
=>
{
...
...
@@ -2609,7 +2610,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Media: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -2686,6 +2686,8 @@ describe('audioManager', function () {
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audio
.
AudioVolumeType
.
MEDIA
,
false
,
(
err
)
=>
{
...
...
@@ -2714,7 +2716,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Media: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -2726,7 +2727,6 @@ describe('audioManager', function () {
done
();
});
});
})
/* *
...
...
@@ -2792,6 +2792,8 @@ describe('audioManager', function () {
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audio
.
AudioVolumeType
.
RINGTONE
,
false
,
(
err
)
=>
{
...
...
@@ -2820,7 +2822,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Media: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -2897,6 +2898,8 @@ describe('audioManager', function () {
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audio
.
AudioVolumeType
.
VOICE_CALL
,
false
,
(
err
)
=>
{
...
...
@@ -2925,7 +2928,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute VOICE_CALL: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -3002,6 +3004,8 @@ describe('audioManager', function () {
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Failed to mute the stream.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
done
();
return
;
}
console
.
log
(
'
AudioFrameworkTest: Callback invoked to indicate that the stream is muted.
'
);
audioManager
.
mute
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
,
false
,
(
err
)
=>
{
...
...
@@ -3030,7 +3034,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute VOICE_ASSISTANT: FALSE: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -3174,7 +3177,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Media: SetVolume: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -3268,7 +3270,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute Ringtone: SetVolume: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -3362,7 +3363,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute VOICE_CALL: SetVolume: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
@@ -3452,7 +3452,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Callback : Is Stream Mute VOICE_ASSISTANT: SetVolume: FAIL:
'
+
data
);
expect
(
false
).
assertTrue
();
}
done
();
});
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录