Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
38538d13
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看板
未验证
提交
38538d13
编写于
8月 31, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 31, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5335 媒体子系统测试用例命名规范修改
Merge pull request !5335 from FULIZHONG/0831master
上级
99f07a86
68f9e659
变更
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
浏览文件 @
38538d13
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
38538d13
...
...
@@ -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
浏览文件 @
38538d13
...
...
@@ -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
浏览文件 @
38538d13
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioFUNC.test.js
浏览文件 @
38538d13
...
...
@@ -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
浏览文件 @
38538d13
...
...
@@ -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
浏览文件 @
38538d13
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录