Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e00bc705
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看板
提交
e00bc705
编写于
8月 31, 2022
作者:
N
NOBUGGERS
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用例名规范整改 Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>
Signed-off-by:
N
NOBUGGERS
<
ruanmeng@huawei.com
>
上级
0a6eabe2
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
167 addition
and
170 deletion
+167
-170
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSSeekTest.test.js
...hlsPlayer/src/main/js/test/VideoPlayerHLSSeekTest.test.js
+1
-1
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
...ard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
+1
-1
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
...ayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
+16
-16
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileAbnormalTestCallback.test.js
...file/src/main/js/test/ProfileAbnormalTestCallback.test.js
+55
-58
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileAbnormalTestPromise.test.js
...ofile/src/main/js/test/ProfileAbnormalTestPromise.test.js
+38
-38
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileTestCallback.test.js
...orderProfile/src/main/js/test/ProfileTestCallback.test.js
+28
-28
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileTestPromise.test.js
...corderProfile/src/main/js/test/ProfileTestPromise.test.js
+28
-28
未找到文件。
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSSeekTest.test.js
浏览文件 @
e00bc705
...
...
@@ -47,7 +47,7 @@ describe('VideoPlayerHLSTest', function () {
})
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_HLS_SEEK
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_SEEK_0100
* @tc.name : 001.test hls
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
...
...
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
浏览文件 @
e00bc705
...
...
@@ -47,7 +47,7 @@ describe('VideoPlayerHLSTest', function () {
})
/* *
* @tc.number : SUB_M
EDIA_VIDEO_PLAYER_HLS
* @tc.number : SUB_M
ULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_0100
* @tc.name : 001.test hls
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
...
...
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerCompatibilityTest.test.js
浏览文件 @
e00bc705
...
...
@@ -52,7 +52,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -66,7 +66,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0200
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -80,7 +80,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -94,7 +94,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0200
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -108,7 +108,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -122,7 +122,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0200
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -136,7 +136,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0500
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0500
* @tc.name : 005.MPEG2_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -150,7 +150,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0600
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0600
* @tc.name : 006.MPEG2_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -164,7 +164,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0800
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0800
* @tc.name : 008.MPEG4_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -178,7 +178,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_WEBM_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_VIDEO_PLAYER_HTTP_FORMAT_WEBM_0100
* @tc.name : 001.VP8_VORBIS
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -192,7 +192,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_MP3_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_MP3_0100
* @tc.name : 001.MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -205,7 +205,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_AAC_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_AAC_0100
* @tc.name : 001.AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -218,7 +218,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_WAV_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_WAV_0100
* @tc.name : 001.MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -231,7 +231,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_FLAC_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_FLAC_0100
* @tc.name : 001.FLAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -244,7 +244,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_M4A_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_M4A_0100
* @tc.name : 001.M4A
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
@@ -257,7 +257,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_OGG_0100
* @tc.number : SUB_M
ULTIMEDIA_M
EDIA_AUDIO_PLAYER_HTTP_FORMAT_OGG_0100
* @tc.name : 001.OGG
* @tc.desc : Http playback control test
* @tc.size : MediumTest
...
...
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileAbnormalTestCallback.test.js
浏览文件 @
e00bc705
...
...
@@ -35,8 +35,6 @@ describe('ProfileAbnormalTestCallback', function () {
console
.
info
(
'
afterAll case
'
);
})
async
function
callbackAbnormalGetVideoProfile
(
sourceId
,
qualityLevel
,
done
){
media
.
getMediaCapability
((
err
,
mediaCaps
)
=>
{
expect
(
err
).
assertUndefined
();
...
...
@@ -55,17 +53,16 @@ describe('ProfileAbnormalTestCallback', function () {
}
})
}
async
function
callbackAbnormalAudioRecoderConfigSupported
(
audioProfile
,
done
)
{
async
function
callbackAbnormalAudioRecorderConfigSupported
(
audioProfile
,
done
)
{
media
.
getMediaCapability
((
err
,
mediaCaps
)
=>
{
expect
(
err
).
assertUndefined
();
console
.
info
(
'
getMediaCapability success
'
);
if
(
typeof
(
mediaCaps
)
!=
'
undefined
'
)
{
mediaCaps
.
isAudioRecoderConfigSupported
(
audioProfile
,
(
err
,
ean
)
=>
{
mediaCaps
.
isAudioReco
r
derConfigSupported
(
audioProfile
,
(
err
,
ean
)
=>
{
expect
(
err
).
assertUndefined
();
expect
(
ean
).
assertEqual
(
false
);
console
.
info
(
'
isAudioRecoderConfigSupported: success
'
);
console
.
info
(
'
isAudioReco
r
derConfigSupported: success
'
);
done
();
})
}
else
{
...
...
@@ -75,7 +72,7 @@ describe('ProfileAbnormalTestCallback', function () {
}
})
}
async
function
callbackAbnormalHasVideoProfile
(
sourceId
,
qualityLevel
,
done
)
{
media
.
getMediaCapability
((
err
,
mediaCaps
)
=>
{
expect
(
err
).
assertUndefined
();
...
...
@@ -96,249 +93,249 @@ describe('ProfileAbnormalTestCallback', function () {
}
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0100
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0100
* @tc.name : test isAudioReco
r
derConfigSupported false
* @tc.desc : 5 args all set wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalAll
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalAll
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0200
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0200
* @tc.name : test isAudioReco
r
derConfigSupported false
* @tc.desc : FormatType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalFormatType
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalFormatType
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0300
* @tc.name : test isAudioRecoderConfigSupported fasle
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0300
* @tc.name : test isAudioReco
r
derConfigSupported fasle
* @tc.desc : CodecMimeType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalCodecMimeType
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalCodecMimeType
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0400
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0400
* @tc.name : test isAudioReco
r
derConfigSupported false
* @tc.desc : bitrate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalBitrate
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalBitrate
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0500
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0500
* @tc.name : test isAudioReco
r
derConfigSupported false
* @tc.desc : sampleRate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalSampleRate
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalSampleRate
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0600
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0600
* @tc.name : test isAudioReco
r
derConfigSupported false
* @tc.desc : channel is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalSampleChannel
,
done
);
callbackAbnormalAudioReco
r
derConfigSupported
(
base
.
audioRecorderAbnormalSampleChannel
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0700
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
test hasVideoRecorderProfile
'
);
callbackAbnormalHasVideoProfile
(
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0800
* @tc.name : test hasVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
-
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0900
* @tc.name : test hasVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
0
,
-
1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1000
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1000
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
65535
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1100
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
65536
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1200
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
0
,
65535
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1300
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
callbackAbnormalHasVideoProfile
(
0
,
65536
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1400
* @tc.name : test getVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
-
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1500
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1500
* @tc.name : test getVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
0
,
-
1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1600
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1600
* @tc.name : test getVideoRecorderProfile sourceId 65535
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
65535
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1700
* @tc.name : test getVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
65536
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1800
* @tc.name : test getVideoRecorderProfile qualityLevel 65535
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
0
,
65535
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1900
* @tc.name : test getVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_CALLBACK_1900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_CALLBACK_1900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
callbackAbnormalGetVideoProfile
(
0
,
65536
,
done
);
})
...
...
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileAbnormalTestPromise.test.js
浏览文件 @
e00bc705
...
...
@@ -106,248 +106,248 @@ describe('ProfileAbnormalTestPromise', function () {
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0100
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.desc : 5 args all set wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalAll
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0200
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.desc : FormatType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalFormatType
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : CodecMimeType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalCodecMimeType
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0400
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : bitrate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalBitrate
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0500
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0500
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : sampleRate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalSampleRate
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0600
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0600
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : channel is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAbnormalAudioRecoderConfigSupported
(
base
.
audioRecorderAbnormalSampleChannel
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0700
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
test hasVideoRecorderProfile
'
);
promiseAbnormalHasVideoProfile
(
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0800
* @tc.name : test hasVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
-
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0900
* @tc.name : test hasVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
0
,
-
1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1000
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1000
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
65535
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1100
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
65536
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1200
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
0
,
65535
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1300
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test hasVideoRecorderProfile
"
);
promiseAbnormalHasVideoProfile
(
0
,
65536
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1400
* @tc.name : test getVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
-
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1500
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1500
* @tc.name : test getVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
0
,
-
1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1600
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1600
* @tc.name : test getVideoRecorderProfile sourceId 65535
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
65535
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1700
* @tc.name : test getVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
65536
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1800
* @tc.name : test getVideoRecorderProfile qualityLevel 65535
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
0
,
65535
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1900
* @tc.name : test getVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it
(
'
SUB_PROFILE_RELIABILITY_PROMISE_1900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_RELIABILITY_PROMISE_1900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getVideoRecorderProfile
"
);
promiseAbnormalGetVideoProfile
(
0
,
65536
,
done
);
})
...
...
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileTestCallback.test.js
浏览文件 @
e00bc705
...
...
@@ -147,21 +147,21 @@ describe('ProfileTestCallback', function () {
}
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0100
* @tc.name : test getAudioRecorderCaps
* @tc.desc : outputFormat/audioEncoderMime/sampleRates/bitrateRange/channelRange
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
getAudioRecorderCapsTest
(
done
);
console
.
info
(
"
test getAudioRecorderCaps success
"
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0200
* @tc.name : test getVideoRecorderCapsTest
* @tc.desc : outputFormat/audioEncoderMime/audioSampleRates/videoEncoderMime/audioBitrateRange/
audioChannelRange/videoBitrateRange/videoFramerateRange/videoWidthRange/videoHeightRange
...
...
@@ -169,172 +169,172 @@ describe('ProfileTestCallback', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
getVideoRecorderCapsTest
(
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0300
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
base
.
recorderQualityLowPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0400
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 1
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_HIGH
,
base
.
recorderQualityHighPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0500
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0500
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_QCIF
,
base
.
recorderQualityQcifPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0600
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0600
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 3
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_CIF
,
base
.
recorderQualityCifPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0700
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 4
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_480P
,
base
.
recorderQuality480PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0800
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 5
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_720P
,
base
.
recorderQuality720PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0900
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 6
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_1080P
,
base
.
recorderQuality1080PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1000
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1000
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 7
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_QVGA
,
base
.
recorderQualityQvgaPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1100
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackGetVideoProfile
(
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
base
.
recorderQualityLowParaSourceId1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1200
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAudioRecoderConfigSupported
(
base
.
audioRecorderPara1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
callbackAudioRecoderConfigSupported
(
base
.
audioRecorderPara2
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1400
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
test hasVideoRecorderProfile
'
);
callbackHasVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
...
...
multimedia/media/media_js_standard/recorderProfile/src/main/js/test/ProfileTestPromise.test.js
浏览文件 @
e00bc705
...
...
@@ -167,21 +167,21 @@ describe('ProfileTestPromise', function () {
}
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0100
* @tc.name : test getAudioRecorderCaps
* @tc.desc : outputFormat/audioEncoderMime/sampleRates/bitrateRange/channelRange
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
getAudioRecorderCapsTest
(
done
);
console
.
info
(
"
test getAudioRecorderCaps success
"
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0200
* @tc.name : test getVideoRecorderCapsTest
* @tc.desc : outputFormat/audioEncoderMime/audioSampleRates/videoEncoderMime/audioBitrateRange/
audioChannelRange/videoBitrateRange/videoFramerateRange/videoWidthRange/videoHeightRange
...
...
@@ -189,172 +189,172 @@ describe('ProfileTestPromise', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
getVideoRecorderCapsTest
(
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0300
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
base
.
recorderQualityLowPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0400
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 1
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_HIGH
,
base
.
recorderQualityHighPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0500
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0500
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_QCIF
,
base
.
recorderQualityQcifPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0600
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0600
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 3
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_CIF
,
base
.
recorderQualityCifPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0700
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0700
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 4
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_480P
,
base
.
recorderQuality480PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0800
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0800
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 5
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_720P
,
base
.
recorderQuality720PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0900
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0900
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 6
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_0900
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_1080P
,
base
.
recorderQuality1080PPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1000
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1000
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 7
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_1000
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1000
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_QVGA
,
base
.
recorderQualityQvgaPara
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1100
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1100
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_1100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseGetVideoProfile
(
1
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
base
.
recorderQualityLowParaSourceId1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1200
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1200
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_1200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAudioRecoderConfigSupported
(
base
.
audioRecorderPara1
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1300
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_1300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test getAudioRecorderCaps
"
);
promiseAudioRecoderConfigSupported
(
base
.
audioRecorderPara2
,
done
);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1400
* @tc.number : SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1400
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it
(
'
SUB_PROFILE_FUNCTION_PROMISE_1400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_
MULTIMEDIA_MEDIA_
PROFILE_FUNCTION_PROMISE_1400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
test hasVideoRecorderProfile
'
);
promiseHasVideoProfile
(
0
,
media
.
VideoRecorderQualityLevel
.
RECORDER_QUALITY_LOW
,
done
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录