Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9e26f194
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看板
提交
9e26f194
编写于
8月 24, 2022
作者:
Q
qinliwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<audio用例修改>
Signed-off-by:
N
qinliwen
<
qinliwen3@huawei.com
>
上级
5bb710df
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
20 deletion
+11
-20
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+11
-20
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
9e26f194
...
...
@@ -2490,7 +2490,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
audioManager
.
isMute
(
audioMedia
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: Media : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -2507,7 +2506,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -2596,7 +2595,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
audioManager
.
isMute
(
audioRingtone
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: Media : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -2613,7 +2611,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -2701,8 +2699,7 @@ describe('audioManager', function () {
console
.
error
(
`Failed to obtain the volume.
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
else
if
(
value
==
highVol
)
{
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
MEDIA
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: Media : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -2719,7 +2716,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -2808,7 +2805,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
RINGTONE
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: Media : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -2825,7 +2821,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -2914,7 +2910,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
VOICE_CALL
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: VOICE_CALL : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -2931,7 +2926,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -3020,7 +3015,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
highVol
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
`AudioFrameworkTest: Callback : FALSE: VOICE_ASSISTANT : failed to get Mute Status
${
err
.
message
}
`
);
...
...
@@ -3037,7 +3031,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -3162,7 +3156,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
0
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
await
audioManager
.
setVolume
(
audioMedia
,
highVol
);
audioManager
.
isMute
(
audioMedia
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -3180,7 +3173,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -3255,7 +3248,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
0
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
await
audioManager
.
setVolume
(
audioRingtone
,
lowVol
);
audioManager
.
isMute
(
audioRingtone
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -3273,7 +3265,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -3348,7 +3340,6 @@ describe('audioManager', function () {
expect
(
false
).
assertTrue
();
}
else
if
(
value
==
0
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
await
audioManager
.
setVolume
(
audio
.
AudioVolumeType
.
VOICE_CALL
,
lowVol
);
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
VOICE_CALL
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -3366,7 +3357,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
"
AudioFrameworkTest: mute fail
"
);
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
@@ -3437,7 +3428,6 @@ describe('audioManager', function () {
console
.
log
(
'
AudioFrameworkTest: Set Stream Mute: VOICE_ASSISTANT: Callback : SetVolume
'
);
await
audioManager
.
getVolume
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
).
then
((
value
)
=>
{
if
(
value
==
0
)
{
console
.
info
(
"
AudioFrameworkTest: value is
"
+
value
);
await
audioManager
.
setVolume
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
,
lowVol
);
audioManager
.
isMute
(
audio
.
AudioVolumeType
.
VOICE_ASSISTANT
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -3455,6 +3445,7 @@ describe('audioManager', function () {
});
}
else
{
console
.
info
(
`AudioFrameworkTest: mute fail: value
${
value
}
`
);
expect
(
false
).
assertTrue
();
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录