Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
68f9e659
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看板
提交
68f9e659
编写于
8月 31, 2022
作者:
F
fulizhong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: FULIZHONG<fulizhong1@huawei.com>
Signed-off-by:
N
fulizhong
<
fulizhong@huawei.com
>
上级
0a6eabe2
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
276 addition
and
276 deletion
+276
-276
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
...ioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
+52
-52
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
...oPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
+16
-16
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
...layer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
+48
-48
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
...corder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
+114
-114
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
...order/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
+28
-28
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
...ayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
+8
-8
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
...layer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
+10
-10
未找到文件。
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
浏览文件 @
68f9e659
...
...
@@ -316,14 +316,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0100
* @tc.name : 01.pause->play
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
console
.
info
(
`case update`
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
PLAY_STATE
,
END_STATE
);
...
...
@@ -333,14 +333,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0200
* @tc.name : 02.stop->play
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
STOP_STATE
,
PLAY_STATE
,
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -349,14 +349,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0300
* @tc.name : 03.seek->play
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
SEEK_STATE
,
SEEK_TIME
,
PLAY_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -365,14 +365,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0400
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0400
* @tc.name : 04.reset->play
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Play
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PLAY
_API_0400
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
RESET_STATE
,
PLAY_STATE
,
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -381,14 +381,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0100
* @tc.name : 01.createAudioPlayer->play
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
PAUSE_STATE
,
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -397,14 +397,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0200
* @tc.name : 02.play->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -413,14 +413,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0300
* @tc.name : 03.stop->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
PLAY_STATE
,
STOP_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -429,14 +429,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0400
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0400
* @tc.name : 04.seek->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Pause
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_PAUSE
_API_0400
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
SEEK_TIME
,
PAUSE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -445,14 +445,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0100
* @tc.name : 01.play->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
STOP_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -461,14 +461,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0200
* @tc.name : 02.pause->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
STOP_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -477,14 +477,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0300
* @tc.name : 03.seek->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Stop
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_STOP
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
SEEK_TIME
,
STOP_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -493,14 +493,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0100
* @tc.name : 01.play->seek
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
SEEK_TIME
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -509,14 +509,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0200
* @tc.name : 02.pause->seek
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
SEEK_STATE
,
SEEK_TIME
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -525,14 +525,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0300
* @tc.name : 03.seek(0)
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Seek
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SEEK
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
0
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -541,14 +541,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Reset
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RESET
_API_0100
* @tc.name : 01.play->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Reset
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RESET
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
RESET_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -557,14 +557,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Reset
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RESET
_API_0200
* @tc.name : 02.pause->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Reset
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RESET
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
RESET_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -573,14 +573,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0100
* @tc.name : 01.createAudioPlayer->setVolume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
var
mySteps
=
new
Array
(
VOLUME_STATE
,
VOLUME_VALUE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -589,14 +589,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0200
* @tc.name : 02.play->setVolume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
var
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
VOLUME_STATE
,
VOLUME_VALUE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -605,14 +605,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0300
* @tc.name : 03.pause->setVolume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_SetVolume
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_SETVOLUME
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
var
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
VOLUME_STATE
,
VOLUME_VALUE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -621,14 +621,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0100
* @tc.name : 01.play->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -637,14 +637,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0200
* @tc.name : 02.pause->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -653,14 +653,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0300
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0300
* @tc.name : 03.stop->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -669,14 +669,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0400
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0400
* @tc.name : 04.seek->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0400
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
SEEK_TIME
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -685,14 +685,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0400
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0400
* @tc.name : 05.reset->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Release
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_RELEASE
_API_0400
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -701,14 +701,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Time
_API_0100
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_TIME
_API_0100
* @tc.name : 01.get parameters after createAudioPlayer
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Time
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_TIME
_API_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
initAudioPlayer
();
expect
(
audioPlayer
.
src
).
assertEqual
(
''
);
...
...
@@ -720,14 +720,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_A
udioPlayer_Time
_API_0200
* @tc.number : SUB_MEDIA_PLAYER_A
UDIOPLAYER_TIME
_API_0200
* @tc.name : 02.get parameters after src
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_A
udioPlayer_Time
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_PLAYER_A
UDIOPLAYER_TIME
_API_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
initAudioPlayer
();
audioPlayer
.
src
=
fdHead
+
fileDescriptor
.
fd
;
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
68f9e659
...
...
@@ -287,14 +287,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
}
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_SETSOURCE
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_SETSOURCE_0100
* @tc.name : 001.test setSorce ''
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_SETSOURCE
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_SETSOURCE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
bufferFlag
=
true
;
let
mySteps
=
new
Array
(
SRC_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -304,14 +304,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_SETVOLUME
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_SETVOLUME_0100
* @tc.name : 001.test SetVolume 0/0.5/1
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_SETVOLUME
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_SETVOLUME_0100
'
,
0
,
async
function
(
done
)
{
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
VOLUME_STATE
,
0
,
VOLUME_STATE
,
0.5
,
VOLUME_STATE
,
MAX_VOLUME
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -320,14 +320,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_M
EDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SEEK
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_AUDIOPLAYER_FUNCTION_SEEK_0100
* @tc.name : 001.test seek mode 0 / 0.5 * duration/ duration
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_M
EDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SEEK
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_MEDIA_AUDIOPLAYER_FUNCTION_SEEK_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
SEEK_STATE
,
0
,
SEEK_STATE
,
DURATION_TIME
/
2
,
SEEK_STATE
,
DURATION_TIME
,
FINISH_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -337,14 +337,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_M
EDIA_PLAYER_LOCAL_AUDIO_FUNCTION_GETTRECKDESCRIPTION
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_AUDIOPLAYER_FUNCTION_GETTRECKDESCRIPTION_0100
* @tc.name : 001.test getTrackDescription
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_M
EDIA_PLAYER_LOCAL_AUDIO_FUNCTION_GETTRECKDESCRIPTION
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_MEDIA_AUDIOPLAYER_FUNCTION_GETTRECKDESCRIPTION_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
GETDESCRIPTION_PROMISE
,
GETDESCRIPTION_CALLBACK
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
@@ -353,14 +353,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_LOOP
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_LOOP_0100
* @tc.name : 001.test loop
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_LOOP
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_LOOP_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
playCount
=
0
;
let
seekCount
=
0
;
...
...
@@ -442,40 +442,40 @@ describe('PlayerLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FUNCTION_BASE_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FUNCTION_BASE_0100
* @tc.name : 001.test audio player (src)
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FUNCTION_BASE_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FUNCTION_BASE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
playAudioSource
(
fdPath
,
DURATION_TIME
,
PLAY_TIME
,
true
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FUNCTION_BASE_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FUNCTION_BASE_0200
* @tc.name : 002.test audio player (fdsrc)
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FUNCTION_BASE_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FUNCTION_BASE_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
playAudioSource
(
fileDescriptor
,
DURATION_TIME
,
PLAY_TIME
,
true
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_MULTIPLE
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_MULTIPLE_0100
* @tc.name : 001.test two audio player
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL_FUNCTION_MULTIPLE
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER_FUNCTION_MULTIPLE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
function
waitForDone
()
{
console
.
info
(
'
case wait for next player
'
);
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
浏览文件 @
68f9e659
...
...
@@ -122,7 +122,7 @@ describe('PlayerLocalTestAudioFormat', function () {
}
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0100
* @tc.name : 001.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -133,12 +133,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
'
01.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0200
* @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0200
'
,
0
,
async
function
(
done
)
{
playSource
(
'
02.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0300
* @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -165,12 +165,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
'
03.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0400
* @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
...
...
@@ -181,12 +181,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP3_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP3_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
'
04.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0100
* @tc.name : 001.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -197,13 +197,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
'
47.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0300
* @tc.name : 003.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -214,12 +214,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
'
49.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0400
* @tc.name : 004.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -230,12 +230,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
'
50.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0500
* @tc.name : 005.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -246,12 +246,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0500
'
,
0
,
async
function
(
done
)
{
playSource
(
'
51.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0600
* @tc.name : 006.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : AAC LC
...
...
@@ -262,12 +262,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0600
'
,
0
,
async
function
(
done
)
{
playSource
(
'
54.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0700
* @tc.name : 007.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -278,12 +278,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0700
'
,
0
,
async
function
(
done
)
{
playSource
(
'
64.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0800
* @tc.name : 008.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -294,12 +294,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0800
'
,
0
,
async
function
(
done
)
{
playSource
(
'
65.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0900
* @tc.name : 009.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -310,12 +310,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_0900
'
,
0
,
async
function
(
done
)
{
playSource
(
'
66.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1000
* @tc.name : 010.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : MP3
...
...
@@ -326,12 +326,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1000
'
,
0
,
async
function
(
done
)
{
playSource
(
'
67.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1100
* @tc.name : 011.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -342,12 +342,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1100
'
,
0
,
async
function
(
done
)
{
playSource
(
'
92.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1200
* @tc.name : 012.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -358,12 +358,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1200
'
,
0
,
async
function
(
done
)
{
playSource
(
'
93.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1300
* @tc.name : 013.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -374,12 +374,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1300
'
,
0
,
async
function
(
done
)
{
playSource
(
'
94.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1400
* @tc.name : 014.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -390,12 +390,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1400
'
,
0
,
async
function
(
done
)
{
playSource
(
'
96.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1500
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1500
* @tc.name : 015.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -406,12 +406,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1500
'
,
0
,
async
function
(
done
)
{
playSource
(
'
97.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1600
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1600
* @tc.name : 016.Playing mp4 streams
* @tc.desc : Format : MP4
Codec : Vorbis
...
...
@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_MP4_1600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_MP4_1600
'
,
0
,
async
function
(
done
)
{
playSource
(
'
98.mp4
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0100
* @tc.name : 001.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -438,13 +438,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0100
'
,
0
,
async
function
(
done
)
{
playSource
(
'
55.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0300
* @tc.name : 003.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -455,12 +455,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
'
57.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0400
* @tc.name : 004.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -471,12 +471,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
'
58.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0500
* @tc.name : 005.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -487,12 +487,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0500
'
,
0
,
async
function
(
done
)
{
playSource
(
'
59.m4a
'
,
done
);
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0700
* @tc.name : 007.Playing m4a streams
* @tc.desc : Format : M4A
Codec : AAC LC
...
...
@@ -503,7 +503,7 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
_PLAYER_LOCAL
_FORMAT_M4A_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO
PLAYER
_FORMAT_M4A_0700
'
,
0
,
async
function
(
done
)
{
playSource
(
'
62.m4a
'
,
done
);
})
})
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
浏览文件 @
68f9e659
...
...
@@ -167,14 +167,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0200
* @tc.name : 02.start->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
START_STATE
,
ERROR_STATE
,
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -182,14 +182,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0300
* @tc.name : 03.pause->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
PRE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -198,14 +198,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0400
* @tc.name : 04.resume->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
PRE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -214,14 +214,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0500
* @tc.name : 05.stop->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RESET_STATE
,
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -229,14 +229,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0600
* @tc.name : 06.reset->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -244,14 +244,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0800
* @tc.name : 08.all steps->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PRE_STATE
,
ERROR_STATE
,
STOP_STATE
,
PRE_STATE
,
RESET_STATE
,
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -260,14 +260,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0900
* @tc.name : 09.prepare called three times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
PRE_STATE
,
ERROR_STATE
,
PRE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -275,14 +275,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1000
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1000
* @tc.name : 10.channel:-1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1000
'
,
0
,
async
function
(
done
)
{
audioConfig
.
numberOfChannels
=
-
1
;
audioConfig
.
audioSampleRate
=
22050
;
audioConfig
.
audioEncodeBitRate
=
22050
;
...
...
@@ -293,14 +293,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1100
* @tc.name : 11.channel:-1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
audioSampleRate
=
-
1
;
audioConfig
.
audioEncodeBitRate
=
22050
;
...
...
@@ -311,14 +311,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1200
* @tc.name : 12.channel:-1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder
_Prepare_API_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER
_Prepare_API_1200
'
,
0
,
async
function
(
done
)
{
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
audioSampleRate
=
22050
;
audioConfig
.
audioEncodeBitRate
=
-
1
;
...
...
@@ -329,14 +329,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0100
* @tc.name : 01.creatAudioRecorder->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0100
'
,
0
,
async
function
(
done
)
{
audioConfig
.
numberOfChannels
=
CHANNEL_TWO
;
audioConfig
.
audioSampleRate
=
22050
;
audioConfig
.
audioEncodeBitRate
=
22050
;
...
...
@@ -347,14 +347,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0200
* @tc.name : 02.prepare->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -362,14 +362,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0300
* @tc.name : 03.pause->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
START_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -378,14 +378,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0400
* @tc.name : 04.resume->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
START_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -394,14 +394,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0500
* @tc.name : 05.stop->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
START_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -410,14 +410,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0600
* @tc.name : 06.reset->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
START_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -426,14 +426,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0800
* @tc.name : 08.all steps->start
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
START_STATE
,
ERROR_STATE
,
PRE_STATE
,
START_STATE
,
RESET_STATE
,
START_STATE
,
ERROR_STATE
,
PRE_STATE
,
START_STATE
,
...
...
@@ -443,14 +443,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0900
* @tc.name : 09.start called three times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Start
_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_START
_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
START_STATE
,
ERROR_STATE
,
START_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -459,14 +459,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0100
* @tc.name : 01.creatAudioRecorder->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -474,14 +474,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0200
* @tc.name : 02.prepare->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -489,14 +489,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0300
* @tc.name : 03.start->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -504,14 +504,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0400
* @tc.name : 04.resume->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
PAUSE_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -520,14 +520,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0500
* @tc.name : 05.stop->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -536,14 +536,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0600
* @tc.name : 06.reset->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -552,14 +552,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0800
* @tc.name : 08.all step->pause
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
PAUSE_STATE
,
STOP_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RESET_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -568,14 +568,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0900
* @tc.name : 09.pause three times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Pause
_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_PAUSE
_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -584,14 +584,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0100
* @tc.name : 01.creatAudioRecorder->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -599,14 +599,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0200
* @tc.name : 02.prepare->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -614,14 +614,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0300
* @tc.name : 03.start->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -629,14 +629,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0400
* @tc.name : 04.pause->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -644,14 +644,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0500
* @tc.name : 05.stop->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -660,14 +660,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0600
* @tc.name : 06.reset->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -676,14 +676,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0800
* @tc.name : 08.all->resume
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESUME_STATE
,
ERROR_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
STOP_STATE
,
RESUME_STATE
,
ERROR_STATE
,
...
...
@@ -693,14 +693,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0900
* @tc.name : 09.resume threee times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Resume
_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESUME
_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RESUME_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -709,14 +709,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0100
* @tc.name : 01.creatAudioRecorder->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
STOP_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -724,14 +724,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0200
* @tc.name : 02.prepare->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
STOP_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -739,14 +739,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0300
* @tc.name : 03.start->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -754,14 +754,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0400
* @tc.name : 04.pause->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -769,14 +769,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0500
* @tc.name : 05.resume->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -785,14 +785,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0600
* @tc.name : 06.reset->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
STOP_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -801,14 +801,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0800
* @tc.name : 08.all steps->stop
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
STOP_STATE
,
ERROR_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RESET_STATE
,
PRE_STATE
,
RESET_STATE
,
STOP_STATE
,
ERROR_STATE
,
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -817,14 +817,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0900
* @tc.name : 09.stop called three times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Stop
_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_STOP
_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
STOP_STATE
,
ERROR_STATE
,
STOP_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -833,14 +833,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0100
* @tc.name : 01.creatAudioRecorder->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -848,14 +848,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0200
* @tc.name : 02.prepare->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -863,14 +863,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0300
* @tc.name : 03.start->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -878,14 +878,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0400
* @tc.name : 04.pause->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -893,14 +893,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0500
* @tc.name : 05.resume->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -909,14 +909,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0600
* @tc.name : 06.stop->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -924,14 +924,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0800
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0800
* @tc.name : 08.all steps->reset
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0800
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RESET_STATE
,
PRE_STATE
,
START_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -940,14 +940,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0900
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0900
* @tc.name : 09.reset callend three times
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Reset
_API_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RESET
_API_0900
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
RESET_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
@@ -956,14 +956,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0100
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0100
* @tc.name : 01.creatAudioRecorder->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -972,14 +972,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0200
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0200
* @tc.name : 02.prepare->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0200
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -987,14 +987,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0300
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0300
* @tc.name : 03.start->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0300
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -1002,14 +1002,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0400
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0400
* @tc.name : 04.pause->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0400
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -1017,14 +1017,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0500
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0500
* @tc.name : 05.resume->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0500
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
PAUSE_STATE
,
RESUME_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -1032,14 +1032,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0600
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0600
* @tc.name : 06.stop->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0600
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
STOP_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
@@ -1047,14 +1047,14 @@ describe('RecorderLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0700
* @tc.number : SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0700
* @tc.name : 07.reset->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_RECORDER_A
udioRecorder_Release
_API_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_RECORDER_A
UDIORECORDER_RELEASE
_API_0700
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
setCallback
(
mySteps
,
done
);
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
68f9e659
...
...
@@ -527,14 +527,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0100
* @tc.name : 001.start
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0100
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_16.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -548,14 +548,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0200
* @tc.name : 002.pause
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0200
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_17.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -569,14 +569,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0300
* @tc.name : 003.pause->resume
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0300
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_18.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -590,14 +590,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0400
* @tc.name : 005.reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0400
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_19.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -611,14 +611,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0500
* @tc.name : 006.pause->resume->pause
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0500
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_20.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -632,14 +632,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0600
* @tc.name : 007.pause->stop->reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0600
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_21.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -653,14 +653,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0700
* @tc.name : 008.pause->resume->stop->reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0700
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_22.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -674,14 +674,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0800
* @tc.name : 009.stop->reset->pause->resume->stop->reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0800
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_23.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -696,14 +696,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0900
* @tc.name : 010.stop->reset->pause->stop->reset
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_0900
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_24.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -718,14 +718,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1000
* @tc.name : 011.start->reset->start->stop
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1000
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getFd
(
'
audio_25.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -739,14 +739,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1100
* @tc.name : 012.start->pause->start(error)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1100
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getFd
(
'
audio_26.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -760,14 +760,14 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1200
* @tc.name : 013.start->stop->pause(error)
* @tc.desc : Audio recordr control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1200
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getFd
(
'
audio_27.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
audioConfig
.
uri
=
fdPath
;
...
...
@@ -781,7 +781,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1300
* @tc.name : 014. API8 audioEncoderMime: audio/mp4a-latm,
* fileFormat:mp4
* @tc.desc : Audio recordr control test
...
...
@@ -789,7 +789,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1300
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getFd
(
'
audio_28.mp4
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
let
newAudioConfig
=
{
...
...
@@ -811,7 +811,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1400
* @tc.name : 014. API8 audioEncoderMime: audio/mp4a-latm,
* fileFormat:m4a
* @tc.desc : Audio recordr control test
...
...
@@ -819,7 +819,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.type : Function
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_
RECORDER_AUDIO
_FUNCTION_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_
AUDIO_RECORDER
_FUNCTION_1400
'
,
0
,
async
function
(
done
)
{
fdObject
=
await
mediaTestBase
.
getAudioFd
(
'
audio_29.m4a
'
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
.
toString
();
let
newAudioConfig
=
{
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js
浏览文件 @
68f9e659
...
...
@@ -471,14 +471,14 @@ describe('VideoPlayerFuncCallbackTest', function () {
});
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SETSOURCE
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SETSOURCE_0100
* @tc.name : 001.test setSorce '' (callback)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_
PROMISE
_SETSOURCE_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_
CALLBACK
_SETSOURCE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSOURCE_EVENT
,
''
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
...
...
@@ -523,14 +523,14 @@ describe('VideoPlayerFuncCallbackTest', function () {
})
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SEEKMODE
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SEEKMODE_0100
* @tc.name : 001.test seek mode SEEK_PREV_SYNC/SEEK_NEXT_SYNC (callback)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SEEKMODE
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SEEKMODE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSOURCE_EVENT
,
fileDescriptor
,
SETSURFACE_EVENT
,
...
...
@@ -646,14 +646,14 @@ describe('VideoPlayerFuncCallbackTest', function () {
})
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_GETTRECKDESCRIPTION
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_GETTRECKDESCRIPTION_0100
* @tc.name : 001.test getTrackDescription (callback)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_GETTRECKDESCRIPTION
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_GETTRECKDESCRIPTION_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSOURCE_EVENT
,
fileDescriptor
,
SETSURFACE_EVENT
,
...
...
@@ -680,14 +680,14 @@ describe('VideoPlayerFuncCallbackTest', function () {
})
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_BASE
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_BASE_0100
* @tc.name : 001.test video playe (callback)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_M
EDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_BASE
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_BASE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
fdPath
=
fdHead
+
fileDescriptor
.
fd
;
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
68f9e659
...
...
@@ -293,14 +293,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_SeekMode
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_SeekMode
* @tc.name : 001.seek mode SEEK_PREV_SYNC/SEEK_NEXT_SYNC (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_SeekMode
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_SeekMode
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
@@ -454,14 +454,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_GetTreckDescription
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_GetTreckDescription
* @tc.name : 001.getTrackDescription (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_GetTreckDescription
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_GetTreckDescription
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
arrayDescription
=
null
;
...
...
@@ -963,14 +963,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0100
* @tc.name : 001.parameter value after create/reset/release (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
@@ -1028,14 +1028,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0200
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0200
* @tc.name : 002.speed and loop value after finish (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0200
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
@@ -1134,14 +1134,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0300
* @tc.name : 003.speed and loop value after reset (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_FUNCTION_PROMISE_PARAMETER_0300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录