Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b0761d87
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看板
提交
b0761d87
编写于
10月 11, 2022
作者:
F
fulizhong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: FULIZHONG<fulizhong1@huawei.com>
Signed-off-by:
N
fulizhong
<
fulizhong@huawei.com
>
上级
b4c35eec
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
32 addition
and
33 deletion
+32
-33
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
...ioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
+3
-3
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
...oPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
+0
-1
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
...ioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
+2
-2
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
...corder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
+1
-1
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
...layer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
+20
-20
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
...layer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
+4
-4
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderEnumTest.test.js
...eoRecorder/src/main/js/test/VideoRecorderEnumTest.test.js
+2
-2
未找到文件。
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
浏览文件 @
b0761d87
...
...
@@ -414,7 +414,7 @@ describe('PlayerLocalTestAudioAPI', function () {
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_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
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
STOP_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
setCallback
(
mySteps
,
done
);
audioPlayer
.
src
=
fdPath
;
...
...
@@ -677,14 +677,14 @@ describe('PlayerLocalTestAudioAPI', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_RELEASE_API_0
4
00
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_RELEASE_API_0
5
00
* @tc.name : 05.reset->release
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_RELEASE_API_0
4
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_RELEASE_API_0
5
00
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
RESET_STATE
,
RELEASE_STATE
,
END_STATE
);
initAudioPlayer
();
...
...
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
b0761d87
...
...
@@ -393,7 +393,6 @@ describe('PlayerLocalTestAudioFUNC', function () {
if
(
seekDoneTime
==
DURATION_TIME
&&
seekCount
==
0
)
{
console
.
info
(
'
case loop step 1
'
);
seekCount
++
;
//mediaTestBase.msleep(PLAY_TIME);
expect
(
testAudioPlayer
.
state
).
assertEqual
(
'
playing
'
);
testAudioPlayer
.
seek
(
DURATION_TIME
-
1000
);
}
else
if
((
seekDoneTime
==
(
DURATION_TIME
-
1000
))
&&
seekCount
==
1
)
{
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js
浏览文件 @
b0761d87
...
...
@@ -68,14 +68,14 @@ describe('AudioRecorderEnumTest', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_C
odecMimeType
_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_C
ODECMIMETYPE
_0100
* @tc.name : CodecMimeType
* @tc.desc : Test Enumerate CodecMimeType
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_C
odecMimeType
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_C
ODECMIMETYPE
_0100
'
,
0
,
async
function
(
done
)
{
expect
(
media
.
CodecMimeType
.
AUDIO_AAC
).
assertEqual
(
'
audio/mp4a-latm
'
);
expect
(
media
.
CodecMimeType
.
AUDIO_VORBIS
).
assertEqual
(
'
audio/vorbis
'
);
expect
(
media
.
CodecMimeType
.
AUDIO_FLAC
).
assertEqual
(
'
audio/flac
'
);
...
...
multimedia/media/media_js_standard/audioRecorder/src/main/js/test/RecorderLocalTestAudioAPI.test.js
浏览文件 @
b0761d87
...
...
@@ -543,7 +543,7 @@ describe('RecorderLocalTestAudioAPI', function () {
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_PAUSE_API_0
5
00
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_PAUSE_API_0
6
00
'
,
0
,
async
function
(
done
)
{
initAudioRecorder
();
let
mySteps
=
new
Array
(
PRE_STATE
,
START_STATE
,
RESET_STATE
,
PAUSE_STATE
,
ERROR_STATE
,
RELEASE_STATE
,
END_STATE
);
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
浏览文件 @
b0761d87
...
...
@@ -649,14 +649,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1300
* @tc.name : 13.finish -> prepare
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -856,14 +856,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PLAY_CALLBACK_1300
* @tc.name : 13.finish -> play
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PLAY_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -1064,14 +1064,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1300
* @tc.name : 13.finish -> pause
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -1273,14 +1273,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_STOP_CALLBACK_1300
* @tc.name : 13.finish -> stop
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_STOP_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -1481,14 +1481,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_RESET_CALLBACK_1300
* @tc.name : 13.finish -> reset
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_RESET_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -1688,14 +1688,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1300
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1300
* @tc.name : 13.finish -> RELEASE
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -1865,14 +1865,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SEEK_CALLBACK_1100
* @tc.name : 11.seek 3 times
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SEEK_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
...
...
@@ -1914,14 +1914,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1500
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SEEK_CALLBACK_1500
* @tc.name : 13.finish -> seek
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SEEK_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -2140,14 +2140,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1500
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1500
* @tc.name : 15.finish -> setvolume
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
@@ -2368,14 +2368,14 @@ describe('VideoPlayerAPICallbackTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1500
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1500
* @tc.name : 15.finish -> setspeed
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETURL_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js
浏览文件 @
b0761d87
...
...
@@ -298,14 +298,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_S
eekMode
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_S
EEKMODE_0100
* @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_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_S
eekMode
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_S
EEKMODE_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
await
media
.
createVideoPlayer
().
then
((
video
)
=>
{
...
...
@@ -465,14 +465,14 @@ describe('VideoPlayerFuncPromiseTest', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_G
etTreckDescription
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_G
ETTRECKDESCRIPTION_0100
* @tc.name : 001.getTrackDescription (promise)
* @tc.desc : Video playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_G
etTreckDescription
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_G
ETTRECKDESCRIPTION_0100
'
,
0
,
async
function
(
done
)
{
mediaTestBase
.
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
arrayDescription
=
null
;
...
...
multimedia/media/media_js_standard/videoRecorder/src/main/js/test/VideoRecorderEnumTest.test.js
浏览文件 @
b0761d87
...
...
@@ -62,14 +62,14 @@ describe('VideoRecorderEnumTest', function () {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_DECODER_ENUM_C
odecMimeType
_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_DECODER_ENUM_C
ODECMIMETYPE
_0100
* @tc.name : CodecMimeType
* @tc.desc : Test Enumerate CodecMimeType
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_DECODER_ENUM_C
odecMimeType
_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_DECODER_ENUM_C
ODECMIMETYPE
_0100
'
,
0
,
async
function
(
done
)
{
expect
(
media
.
CodecMimeType
.
VIDEO_H263
).
assertEqual
(
'
video/h263
'
);
expect
(
media
.
CodecMimeType
.
VIDEO_AVC
).
assertEqual
(
'
video/avc
'
);
expect
(
media
.
CodecMimeType
.
VIDEO_MPEG2
).
assertEqual
(
'
video/mpeg2
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录