Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9fc4c287
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看板
提交
9fc4c287
编写于
11月 15, 2022
作者:
L
lwx1121892
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify
Signed-off-by:
N
lwx1121892
<
liuxueqi3@huawei.com
>
上级
593a4044
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js
...rd/audioManager/src/main/js/test/AudioManagerApi9.test.js
+12
-12
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js
...dard/audioRenderer/src/main/js/test/AudioRenderer.test.js
+2
-2
未找到文件。
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js
浏览文件 @
9fc4c287
...
...
@@ -100,7 +100,7 @@ describe('audioManagerApi9', function () {
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_ERRORS_0100
'
*@tc.number : SUB_MULTIMEDIA_AUDIO_ERRORS_0100
*@tc.name : AUDIO_ERRORS
*@tc.desc : AUDIO_ERRORS
*@tc.size : MEDIUM
...
...
@@ -120,7 +120,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_DEFAULT_VOLUME_GROUP_ID_0100
'
*@tc.number : SUB_MULTIMEDIA_DEFAULT_VOLUME_GROUP_ID_0100
*@tc.name : DEFAULT_VOLUME_GROUP_ID
*@tc.desc : DEFAULT_VOLUME_GROUP_ID
*@tc.size : MEDIUM
...
...
@@ -134,7 +134,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_DEFAULT_INTERRUPT_GROUP_ID_0100
'
*@tc.number : SUB_MULTIMEDIA_DEFAULT_INTERRUPT_GROUP_ID_0100
*@tc.name : DEFAULT_INTERRUPT_GROUP_ID
*@tc.desc : DEFAULT_INTERRUPT_GROUP_ID
*@tc.size : MEDIUM
...
...
@@ -148,7 +148,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_COMUNICATIONDEVICETYPE_0100
'
*@tc.number : SUB_MULTIMEDIA_COMUNICATIONDEVICETYPE_0100
*@tc.name : COMUNICATIONDEVICETYPE
*@tc.desc : COMUNICATIONDEVICETYPE
*@tc.size : MEDIUM
...
...
@@ -163,7 +163,7 @@ describe('audioManagerApi9', function () {
/**
*@tc.number : SUB_MULTIMEDIA_
DEFAULT_INTERRUPT_GROUP_ID_0100'
*@tc.number : SUB_MULTIMEDIA_
INTERRUPTREQUESTTYPE_0100
*@tc.name : INTERRUPTREQUESTTYPE
*@tc.desc : INTERRUPTREQUESTTYPE
*@tc.size : MEDIUM
...
...
@@ -177,7 +177,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_
DEFAULT_INTERRUPT_GROUP_ID_0100'
*@tc.number : SUB_MULTIMEDIA_
INTERRUPTREQUESTRESULTTYPE_0100
*@tc.name : INTERRUPTREQUESTRESULTTYPE
*@tc.desc : INTERRUPTREQUESTRESULTTYPE
*@tc.size : MEDIUM
...
...
@@ -783,7 +783,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_
G
SETMICROPHONEMUTE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_SETMICROPHONEMUTE_0100
*@tc.name : setMicrophoneMute - true - Callback
*@tc.desc : Enable mic mute
*@tc.size : MEDIUM
...
...
@@ -828,7 +828,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_
G
SETMICROPHONEMUTE_0200
*@tc.number : SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_SETMICROPHONEMUTE_0200
*@tc.name : setMicrophoneMute - true - Promise
*@tc.desc : Enable mic mute
*@tc.size : MEDIUM
...
...
@@ -928,14 +928,14 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_STREAM_MANAGER_ISACTIVE_0
1
00
*@tc.number : SUB_MULTIMEDIA_AUDIO_STREAM_MANAGER_ISACTIVE_0
2
00
*@tc.name : isActive - Media - Callback
*@tc.desc : isActive - Media - Callback - When stream is NOT playing
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 1
*/
it
(
'
SUB_MULTIMEDIA_AUDIO_STREAM_MANAGER_ISACTIVE_0
1
00
'
,
1
,
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_AUDIO_STREAM_MANAGER_ISACTIVE_0
2
00
'
,
1
,
function
(
done
)
{
console
.
log
(
`
${
TagFrmwk
}
: Callback : isActive Media: NOTE: audio NOT PLAYING as MEDIA for the test case to PASS`
);
streamManager
.
isActive
(
audioMedia
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -953,7 +953,7 @@ describe('audioManagerApi9', function () {
})
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_MANAGER_SETCOMMUNICATIONDEVICE_0100
*@tc.number : SUB_MULTIMEDIA_AUDIO_
ROUTING_
MANAGER_SETCOMMUNICATIONDEVICE_0100
*@tc.name : setCommunicationDevice - SPEAKER - deactivate - Promise
*@tc.desc : setCommunicationDevice speaker - Promise
*@tc.size : MEDIUM
...
...
@@ -1019,7 +1019,7 @@ describe('audioManagerApi9', function () {
if
(
outputDeviceDescription
.
length
==
1
&&
outputDeviceDescription
[
0
].
deviceType
==
audio
.
DeviceType
.
SPEAKER
)
{
flag
=
false
;
}
AudioRoutingManager
.
setCommunicationDevice
(
audio
.
Active
DeviceType
.
SPEAKER
,
false
,
(
err
)
=>
{
AudioRoutingManager
.
setCommunicationDevice
(
audio
.
Communication
DeviceType
.
SPEAKER
,
false
,
(
err
)
=>
{
if
(
err
)
{
console
.
error
(
`
${
TagFrmwk
}
: Device Test: Callback : setCommunicationDevice : SPEAKER: Deactivate: Error:
${
err
.
message
}
`
);
expect
(
false
).
assertTrue
();
...
...
multimedia/audio/audio_js_standard/audioRenderer/src/main/js/test/AudioRenderer.test.js
浏览文件 @
9fc4c287
...
...
@@ -24,13 +24,13 @@ describe('audioRenderer', function () {
let
fdRead
;
let
readPath
;
const
AUDIOMANAGER
=
audio
.
getAudioManager
();
console
.
info
(
`
${
TagFrmwkRender
}
: Create AudioManger Object JS Framework`
);
let
TagFrmwkRender
=
"
AudioFrameworkRenderLog
"
;
let
TagFrmwk
=
"
AudioFrameworkTest
"
;
let
TagFrmwkAudioScene
=
"
AudioFrameworkAudioScene
"
;
let
fdPath
;
let
filePath
;
console
.
info
(
`
${
TagFrmwkRender
}
: Create AudioManger Object JS Framework`
);
beforeAll
(
function
()
{
console
.
info
(
`
${
TagFrmwkRender
}
: beforeAll: Prerequisites at the test suite level`
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录