提交 91940650 编写于 作者: F fulizhong

modify testcases Signed-off-by: FULIZHONG<fulizhong1@huawei.com>

Signed-off-by: Nfulizhong <fulizhong@huawei.com>
上级 abbfec82
...@@ -39,7 +39,7 @@ export function playAudioSource(src, duration, playTime, checkSeekTime, done) { ...@@ -39,7 +39,7 @@ export function playAudioSource(src, duration, playTime, checkSeekTime, done) {
} }
audioPlayer.on('dataLoad', () => { audioPlayer.on('dataLoad', () => {
console.info('case set source success'); console.info('case set source success');
expect(audioPlayer.state).assertEqual('paused'); expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.currentTime).assertEqual(0); expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertClose(duration, 500); expect(audioPlayer.duration).assertClose(duration, 500);
// step 0: dataLoad -> play // step 0: dataLoad -> play
......
...@@ -2443,14 +2443,14 @@ describe('AudioDecoderFormatCompatibilityPromise', function () { ...@@ -2443,14 +2443,14 @@ describe('AudioDecoderFormatCompatibilityPromise', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_AAC_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_AAC_PROMISE_0100
* @tc.name : 001.test AAC format compatibility * @tc.name : 001.test AAC format compatibility
* @tc.desc : audio decoder format compatibility test * @tc.desc : audio decoder format compatibility test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_AAC_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_AAC_PROMISE_0100', 0, async function (done) {
console.log("case test AAC format compatibility"); console.log("case test AAC format compatibility");
await getFormatCaps('audio/mp4a-latm'); await getFormatCaps('audio/mp4a-latm');
ES_DICT = AAC_ES_DICT; ES_DICT = AAC_ES_DICT;
...@@ -2476,14 +2476,14 @@ describe('AudioDecoderFormatCompatibilityPromise', function () { ...@@ -2476,14 +2476,14 @@ describe('AudioDecoderFormatCompatibilityPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_FLAC_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_FLAC_PROMISE_0100
* @tc.name : 001.test FLAC format compatibility * @tc.name : 001.test FLAC format compatibility
* @tc.desc : audio decoder format compatibility test * @tc.desc : audio decoder format compatibility test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_FLAC_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_COMPATIBILITY_FLAC_PROMISE_0100', 0, async function (done) {
console.log("case test FLAC format compatibility"); console.log("case test FLAC format compatibility");
await getFormatCaps('audio/flac'); await getFormatCaps('audio/flac');
ES_DICT = FLAC_ES_DICT; ES_DICT = FLAC_ES_DICT;
......
...@@ -386,14 +386,14 @@ describe('AudioEncoderFormatCompatibilityPromise', function () { ...@@ -386,14 +386,14 @@ describe('AudioEncoderFormatCompatibilityPromise', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FORMAT_COMPATIBILITY_AAC_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FORMAT_COMPATIBILITY_AAC_PROMISE_0100
* @tc.name : 01.test acc format compatibility * @tc.name : 01.test acc format compatibility
* @tc.desc : audio encoder format compatibility test * @tc.desc : audio encoder format compatibility test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FORMAT_COMPATIBILITY_AAC_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FORMAT_COMPATIBILITY_AAC_PROMISE_0100', 0, async function (done) {
console.info("case test acc format compatibility"); console.info("case test acc format compatibility");
await getFormatCaps(); await getFormatCaps();
sampleRateList = formatSampleRate.toString().split(','); sampleRateList = formatSampleRate.toString().split(',');
......
...@@ -45,14 +45,14 @@ describe('AudioDecoderEnum', function () { ...@@ -45,14 +45,14 @@ describe('AudioDecoderEnum', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_ENUM_AACProfile_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AACProfile_0100
* @tc.name : 001.AACProfile * @tc.name : 001.AACProfile
* @tc.desc : Test Enumerate AACProfile * @tc.desc : Test Enumerate AACProfile
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_ENUM_AACProfile_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AACProfile_0100', 0, async function (done) {
expect(media.AACProfile.AAC_PROFILE_LC).assertEqual(0); expect(media.AACProfile.AAC_PROFILE_LC).assertEqual(0);
expect(media.AACProfile.AAC_PROFILE_ELD).assertEqual(1); expect(media.AACProfile.AAC_PROFILE_ELD).assertEqual(1);
expect(media.AACProfile.AAC_PROFILE_ERLC).assertEqual(2); expect(media.AACProfile.AAC_PROFILE_ERLC).assertEqual(2);
...@@ -64,14 +64,14 @@ describe('AudioDecoderEnum', function () { ...@@ -64,14 +64,14 @@ describe('AudioDecoderEnum', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_ENUM_AudioCaps_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AudioCaps_0100
* @tc.name : 002.AudioCaps * @tc.name : 002.AudioCaps
* @tc.desc : Test Interface AudioCaps * @tc.desc : Test Interface AudioCaps
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_ENUM_AudioCaps_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AudioCaps_0100', 0, async function (done) {
console.info("case test Test Interface AudioCaps"); console.info("case test Test Interface AudioCaps");
let audioDecodeProcessor; let audioDecodeProcessor;
let audioCaps; let audioCaps;
...@@ -131,14 +131,14 @@ describe('AudioDecoderEnum', function () { ...@@ -131,14 +131,14 @@ describe('AudioDecoderEnum', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_ENUM_AVCodecType_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AVCodecType_0100
* @tc.name : 003.AVCodecType * @tc.name : 003.AVCodecType
* @tc.desc : Test Enumerate AVCodecType * @tc.desc : Test Enumerate AVCodecType
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_ENUM_AVCodecType_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_AVCodecType_0100', 0, async function (done) {
expect(media.AVCodecType.AVCODEC_TYPE_VIDEO_ENCODER).assertEqual(0); expect(media.AVCodecType.AVCODEC_TYPE_VIDEO_ENCODER).assertEqual(0);
expect(media.AVCodecType.AVCODEC_TYPE_VIDEO_DECODER).assertEqual(1); expect(media.AVCodecType.AVCODEC_TYPE_VIDEO_DECODER).assertEqual(1);
expect(media.AVCodecType.AVCODEC_TYPE_AUDIO_ENCODER).assertEqual(2); expect(media.AVCodecType.AVCODEC_TYPE_AUDIO_ENCODER).assertEqual(2);
......
...@@ -222,14 +222,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -222,14 +222,14 @@ describe('AudioDecoderFormatCallback', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_CALLBACK_0100
* @tc.name : 001.test aac format(createbymime) * @tc.name : 001.test aac format(createbymime)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_CALLBACK_0100', 0, async function (done) {
console.log("case test aac format"); console.log("case test aac format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -340,14 +340,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -340,14 +340,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0101 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_CALLBACK_0200
* @tc.name : 001.test aac format(createbyname) * @tc.name : 001.test aac format(createbyname)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0101', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_CALLBACK_0200', 0, async function (done) {
console.log("case test aac format"); console.log("case test aac format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -458,14 +458,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -458,14 +458,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_CALLBACK_0100
* @tc.name : 002.test flac format(createbymime) * @tc.name : 002.test flac format(createbymime)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_CALLBACK_0100', 0, async function (done) {
console.log("case test flac format"); console.log("case test flac format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -533,14 +533,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -533,14 +533,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0201 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_CALLBACK_0200
* @tc.name : 002.test flac format(createbyname) * @tc.name : 002.test flac format(createbyname)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0201', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_CALLBACK_0200', 0, async function (done) {
console.log("case test flac format"); console.log("case test flac format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -608,14 +608,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -608,14 +608,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_CALLBACK_0100
* @tc.name : 003.test mp3 format(createbymime) * @tc.name : 003.test mp3 format(createbymime)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_CALLBACK_0100', 0, async function (done) {
console.log("test mp3 format"); console.log("test mp3 format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -670,14 +670,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -670,14 +670,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0301 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_CALLBACK_0200
* @tc.name : 003.test mp3 format(createbyname) * @tc.name : 003.test mp3 format(createbyname)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0301', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_CALLBACK_0200', 0, async function (done) {
console.log("test mp3 format"); console.log("test mp3 format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -732,14 +732,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -732,14 +732,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_CALLBACK_0100
* @tc.name : 004.test vorbis format(createbymime) * @tc.name : 004.test vorbis format(createbymime)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_CALLBACK_0100', 0, async function (done) {
console.log("test vorbis format"); console.log("test vorbis format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -837,14 +837,14 @@ describe('AudioDecoderFormatCallback', function () { ...@@ -837,14 +837,14 @@ describe('AudioDecoderFormatCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0401 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_CALLBACK_0200
* @tc.name : 004.test vorbis format(createbyname) * @tc.name : 004.test vorbis format(createbyname)
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_CALLBACK_01_0401', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_CALLBACK_0200', 0, async function (done) {
console.log("test vorbis format"); console.log("test vorbis format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
......
...@@ -229,14 +229,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -229,14 +229,14 @@ describe('AudioDecoderFormatPromise', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_PROMISE_0100
* @tc.name : 001.test aac format(createbymime) * @tc.name : 001.test aac format(createbymime)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_PROMISE_0100', 0, async function (done) {
console.log("case test aac format"); console.log("case test aac format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -328,14 +328,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -328,14 +328,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0101 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_PROMISE_0200
* @tc.name : 001.test aac format(createbyname) * @tc.name : 001.test aac format(createbyname)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0101', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_AAC_PROMISE_0200', 0, async function (done) {
console.log("case test aac format"); console.log("case test aac format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -427,14 +427,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -427,14 +427,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_PROMISE_0100
* @tc.name : 002.test flac format(createbymime) * @tc.name : 002.test flac format(createbymime)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_PROMISE_0100', 0, async function (done) {
console.log("case test flac format"); console.log("case test flac format");
let mediaDescription = { let mediaDescription = {
"channel_count": 1, "channel_count": 1,
...@@ -484,14 +484,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -484,14 +484,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0201 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_PROMISE_0200
* @tc.name : 002.test flac format(createbyname) * @tc.name : 002.test flac format(createbyname)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0201', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_FLAC_PROMISE_0200', 0, async function (done) {
console.log("case test flac format"); console.log("case test flac format");
let mediaDescription = { let mediaDescription = {
"channel_count": 1, "channel_count": 1,
...@@ -541,14 +541,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -541,14 +541,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_PROMISE_0100
* @tc.name : 003.test mp3 format(createbymime) * @tc.name : 003.test mp3 format(createbymime)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_PROMISE_0100', 0, async function (done) {
console.log("case test mp3 format"); console.log("case test mp3 format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -583,14 +583,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -583,14 +583,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0301 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_PROMISE_0200
* @tc.name : 003.test mp3 format(createbyname) * @tc.name : 003.test mp3 format(createbyname)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0301', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_MP3_PROMISE_0200', 0, async function (done) {
console.log("case test mp3 format"); console.log("case test mp3 format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -625,14 +625,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -625,14 +625,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_PROMISE_0100
* @tc.name : 004.test vorbis format(createbymime) * @tc.name : 004.test vorbis format(createbymime)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_PROMISE_0100', 0, async function (done) {
console.log("case test vorbis format"); console.log("case test vorbis format");
let mediaDescription = { let mediaDescription = {
"channel_count": 1, "channel_count": 1,
...@@ -711,14 +711,14 @@ describe('AudioDecoderFormatPromise', function () { ...@@ -711,14 +711,14 @@ describe('AudioDecoderFormatPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0401 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_PROMISE_0200
* @tc.name : 004.test vorbis format(createbyname) * @tc.name : 004.test vorbis format(createbyname)
* @tc.desc : decode format test * @tc.desc : decode format test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FORMAT_PROMISE_01_0401', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FORMAT_VORBIS_PROMISE_0200', 0, async function (done) {
console.log("case test vorbis format"); console.log("case test vorbis format");
let mediaDescription = { let mediaDescription = {
"channel_count": 1, "channel_count": 1,
......
...@@ -484,14 +484,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -484,14 +484,14 @@ describe('AudioDecoderFuncCallback', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0100
* @tc.name : 000.test set EOS after last frame and reset * @tc.name : 000.test set EOS after last frame and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0100', 0, async function (done) {
console.info("case test set EOS after last frame and reset"); console.info("case test set EOS after last frame and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -566,14 +566,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -566,14 +566,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0200
* @tc.name : 001.test set EOS manually before last frame and reset * @tc.name : 001.test set EOS manually before last frame and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0200', 0, async function (done) {
console.info("case test set EOS manually before last frame and reset"); console.info("case test set EOS manually before last frame and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -638,14 +638,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -638,14 +638,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0300
* @tc.name : 002.test flush at running state * @tc.name : 002.test flush at running state
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0300', 0, async function (done) {
console.info("case test flush at running state"); console.info("case test flush at running state");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -712,14 +712,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -712,14 +712,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0400
* @tc.name : 003. test flush at EOS state * @tc.name : 003. test flush at EOS state
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0400', 0, async function (done) {
console.info("case test flush at EOS state"); console.info("case test flush at EOS state");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -772,14 +772,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -772,14 +772,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0500
* @tc.name : 004. test stop at running state and reset * @tc.name : 004. test stop at running state and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0500', 0, async function (done) {
console.info("case test stop at running state and reset"); console.info("case test stop at running state and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -856,14 +856,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -856,14 +856,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0600
* @tc.name : 005. test stop and restart * @tc.name : 005. test stop and restart
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0600', 0, async function (done) {
console.info("case test start - stop - restart"); console.info("case test start - stop - restart");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -937,14 +937,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -937,14 +937,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0700
* @tc.name : 006. test reconfigure for new file with the same format * @tc.name : 006. test reconfigure for new file with the same format
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0700', 0, async function (done) {
console.info("case test reconfigure codec for new file with the same format"); console.info("case test reconfigure codec for new file with the same format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -1039,14 +1039,14 @@ describe('AudioDecoderFuncCallback', function () { ...@@ -1039,14 +1039,14 @@ describe('AudioDecoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0700 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0800
* @tc.name : 007. test reconfigure for new file with different formats * @tc.name : 007. test reconfigure for new file with different formats
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_01_0700', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_CALLBACK_0800', 0, async function (done) {
console.info("case test reconfigure codec for new file with different format"); console.info("case test reconfigure codec for new file with different format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
......
...@@ -483,14 +483,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -483,14 +483,14 @@ describe('AudioDecoderFuncPromise', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0100
* @tc.name : 000.test set EOS after last frame and reset * @tc.name : 000.test set EOS after last frame and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0100', 0, async function (done) {
console.info("case test set EOS after last frame and reset"); console.info("case test set EOS after last frame and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -542,14 +542,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -542,14 +542,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0200
* @tc.name : 001.test set EOS manually before last frame and reset * @tc.name : 001.test set EOS manually before last frame and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0200', 0, async function (done) {
console.info("case test set EOS manually before last frame and reset"); console.info("case test set EOS manually before last frame and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -583,14 +583,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -583,14 +583,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0300
* @tc.name : 002.test flush at running state * @tc.name : 002.test flush at running state
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0300', 0, async function (done) {
console.info("case test flush at running state"); console.info("case test flush at running state");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -634,14 +634,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -634,14 +634,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0400
* @tc.name : 003. test flush at EOS state * @tc.name : 003. test flush at EOS state
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0400', 0, async function (done) {
console.info("case test flush at EOS state"); console.info("case test flush at EOS state");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -674,14 +674,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -674,14 +674,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0500
* @tc.name : 004. test stop at running state and reset * @tc.name : 004. test stop at running state and reset
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0500', 0, async function (done) {
console.info("case test stop at running state and reset"); console.info("case test stop at running state and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -726,14 +726,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -726,14 +726,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0600
* @tc.name : 005. test stop and restart * @tc.name : 005. test stop and restart
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0600', 0, async function (done) {
console.info("case test stop and restart"); console.info("case test stop and restart");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -781,14 +781,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -781,14 +781,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0700
* @tc.name : 006. test reconfigure for new file with the same format * @tc.name : 006. test reconfigure for new file with the same format
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0700', 0, async function (done) {
console.info("case test reconfigure codec for new file with the same format"); console.info("case test reconfigure codec for new file with the same format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -862,14 +862,14 @@ describe('AudioDecoderFuncPromise', function () { ...@@ -862,14 +862,14 @@ describe('AudioDecoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0700 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0800
* @tc.name : 007. test reconfigure for new file with different formats * @tc.name : 007. test reconfigure for new file with different formats
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_01_0700', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_FUNCTION_PROMISE_0800', 0, async function (done) {
console.info("case test reconfigure codec for new file with different formats"); console.info("case test reconfigure codec for new file with different formats");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
......
...@@ -235,14 +235,14 @@ describe('AudioDecoderMultiInstances', function () { ...@@ -235,14 +235,14 @@ describe('AudioDecoderMultiInstances', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_MULTIINSTANCE_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_MULTIINSTANCE_0100
* @tc.name : 001.create multiple decoders * @tc.name : 001.create multiple decoders
* @tc.desc : basic decode function * @tc.desc : basic decode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level2 * @tc.level : Level2
*/ */
it('SUB_MEDIA_AUDIO_DECODER_MULTIINSTANCE_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_MULTIINSTANCE_0100', 0, async function (done) {
console.info("case test multiple instances"); console.info("case test multiple instances");
let array = new Array(); let array = new Array();
for (let i = 0; i < 2; i += 1) { for (let i = 0; i < 2; i += 1) {
......
...@@ -299,14 +299,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -299,14 +299,14 @@ describe('AudioEncoderFuncCallback', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0100
* @tc.name : 000.test set EOS after last frame and reset * @tc.name : 000.test set EOS after last frame and reset
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0100', 0, async function (done) {
console.info("test set EOS after last frame and reset"); console.info("test set EOS after last frame and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -383,14 +383,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -383,14 +383,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0200
* @tc.name : 001.test set EOS manually before last frame and reset * @tc.name : 001.test set EOS manually before last frame and reset
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0200', 0, async function (done) {
console.info("case test set EOS manually before last frame and reset"); console.info("case test set EOS manually before last frame and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -442,14 +442,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -442,14 +442,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0300
* @tc.name : 002.test flush at running state * @tc.name : 002.test flush at running state
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0300', 0, async function (done) {
console.info("case test flush at running state"); console.info("case test flush at running state");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -516,14 +516,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -516,14 +516,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0400
* @tc.name : 003. test flush at EOS state * @tc.name : 003. test flush at EOS state
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0400', 0, async function (done) {
console.info("case test flush at EOS state"); console.info("case test flush at EOS state");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -575,14 +575,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -575,14 +575,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0500
* @tc.name : 004.test stop at running state and reset * @tc.name : 004.test stop at running state and reset
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0500', 0, async function (done) {
console.info("case test stop at running state and reset"); console.info("case test stop at running state and reset");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -659,14 +659,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -659,14 +659,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0600
* @tc.name : 005.test stop and restart * @tc.name : 005.test stop and restart
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0600', 0, async function (done) {
console.info("case test stop and restart"); console.info("case test stop and restart");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
...@@ -740,14 +740,14 @@ describe('AudioEncoderFuncCallback', function () { ...@@ -740,14 +740,14 @@ describe('AudioEncoderFuncCallback', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0700
* @tc.name : 006.test reconfigure for new file with the same format * @tc.name : 006.test reconfigure for new file with the same format
* @tc.desc : basic Encode function * @tc.desc : basic Encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_01_0600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_CALLBACK_0700', 0, async function (done) {
console.info("case test reconfigure for new file with the same format"); console.info("case test reconfigure for new file with the same format");
let events = require('events'); let events = require('events');
let eventEmitter = new events.EventEmitter(); let eventEmitter = new events.EventEmitter();
......
...@@ -293,14 +293,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -293,14 +293,14 @@ describe('AudioEncoderFuncPromise', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0100
* @tc.name : 000.test set EOS after last frame and reset * @tc.name : 000.test set EOS after last frame and reset
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0100', 0, async function (done) {
console.info("case test set EOS after last frame and reset"); console.info("case test set EOS after last frame and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -359,14 +359,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -359,14 +359,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0200
* @tc.name : 001.test set EOS manually before last frame and reset * @tc.name : 001.test set EOS manually before last frame and reset
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0200', 0, async function (done) {
console.info("case test set EOS manually before last frame and reset"); console.info("case test set EOS manually before last frame and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -399,14 +399,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -399,14 +399,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0300
* @tc.name : 002.test flush at running state * @tc.name : 002.test flush at running state
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0300', 0, async function (done) {
console.info("case test flush at running state"); console.info("case test flush at running state");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -450,14 +450,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -450,14 +450,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0400
* @tc.name : 003.test flush at EOS state * @tc.name : 003.test flush at EOS state
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0400', 0, async function (done) {
console.info("case test flush at EOS state"); console.info("case test flush at EOS state");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -490,14 +490,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -490,14 +490,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0500
* @tc.name : 004.test stop at running state and reset * @tc.name : 004.test stop at running state and reset
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0500', 0, async function (done) {
console.info("case test stop at running state and reset"); console.info("case test stop at running state and reset");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -542,14 +542,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -542,14 +542,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0600
* @tc.name : 005.test stop and restart * @tc.name : 005.test stop and restart
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0600', 0, async function (done) {
console.info("case test stop and restart"); console.info("case test stop and restart");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
...@@ -597,14 +597,14 @@ describe('AudioEncoderFuncPromise', function () { ...@@ -597,14 +597,14 @@ describe('AudioEncoderFuncPromise', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0700
* @tc.name : 006.test reconfigure for new file with the same format * @tc.name : 006.test reconfigure for new file with the same format
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level1 * @tc.level : Level1
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_01_0600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_FUNCTION_PROMISE_0700', 0, async function (done) {
console.info("case test reconfigure for new file with the same format"); console.info("case test reconfigure for new file with the same format");
let mediaDescription = { let mediaDescription = {
"channel_count": 2, "channel_count": 2,
......
...@@ -283,14 +283,14 @@ describe('AudioEncoderMultiInstances', function () { ...@@ -283,14 +283,14 @@ describe('AudioEncoderMultiInstances', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_ENCODER_MULTIINSTANCE_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_MULTIINSTANCE_0100
* @tc.name : 001.create multiple encoder2 * @tc.name : 001.create multiple encoder2
* @tc.desc : basic encode function * @tc.desc : basic encode function
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level2 * @tc.level : Level2
*/ */
it('SUB_MEDIA_AUDIO_ENCODER_MULTIINSTANCE_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_ENCODER_MULTIINSTANCE_0100', 0, async function (done) {
console.info("case test multiple encoder instances"); console.info("case test multiple encoder instances");
let array = new Array(); let array = new Array();
for (let i = 0; i < 2; i += 1) { for (let i = 0; i < 2; i += 1) {
......
...@@ -148,7 +148,7 @@ describe('PlayerLocalTestAudioAPI', function () { ...@@ -148,7 +148,7 @@ describe('PlayerLocalTestAudioAPI', function () {
console.info(`case dataLoad called`); console.info(`case dataLoad called`);
expect(audioPlayer.currentTime).assertEqual(0); expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME); expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused'); expect(audioPlayer.state).assertEqual('idle');
nextStep(mySteps,done); nextStep(mySteps,done);
}); });
audioPlayer.on('play', () => { audioPlayer.on('play', () => {
...@@ -735,7 +735,7 @@ describe('PlayerLocalTestAudioAPI', function () { ...@@ -735,7 +735,7 @@ describe('PlayerLocalTestAudioAPI', function () {
expect(audioPlayer.src).assertEqual(fdHead + fileDescriptor.fd); expect(audioPlayer.src).assertEqual(fdHead + fileDescriptor.fd);
expect(audioPlayer.currentTime).assertEqual(0); expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME); expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused'); expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.loop).assertEqual(false); expect(audioPlayer.loop).assertEqual(false);
done(); done();
}) })
......
...@@ -194,7 +194,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -194,7 +194,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
console.info(`case dataLoad called`); console.info(`case dataLoad called`);
expect(audioPlayer.currentTime).assertEqual(0); expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME); expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused'); expect(audioPlayer.state).assertEqual('idle');
nextStep(mySteps, done); nextStep(mySteps, done);
}); });
audioPlayer.on('play', () => { audioPlayer.on('play', () => {
...@@ -287,14 +287,14 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -287,14 +287,14 @@ describe('PlayerLocalTestAudioFUNC', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SETSOURCE * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_SETSOURCE
* @tc.name : 001.test setSorce '' * @tc.name : 001.test setSorce ''
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SETSOURCE', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_SETSOURCE', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done); mediaTestBase.isFileOpen(fileDescriptor, done);
bufferFlag = true; bufferFlag = true;
let mySteps = new Array(SRC_STATE, ERROR_STATE, RELEASE_STATE, END_STATE); let mySteps = new Array(SRC_STATE, ERROR_STATE, RELEASE_STATE, END_STATE);
...@@ -304,30 +304,63 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -304,30 +304,63 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SETVOLUME * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_SETVOLUME
* @tc.name : 001.test SetVolume 0/0.5/1 * @tc.name : 001.test SetVolume 0/0.5/1
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SETVOLUME', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_SETVOLUME', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, VOLUME_STATE, 0, VOLUME_STATE, 0.5, 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); VOLUME_STATE, MAX_VOLUME, RESET_STATE, RELEASE_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
audioPlayer.src = fdPath; audioPlayer.src = fdPath;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SEEK
* @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_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_SEEK', 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);
initAudioPlayer();
setCallback(mySteps, done);
audioPlayer.src = fdHead + fileDescriptor.fd;
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_LOOP * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_GETTRECKDESCRIPTION
* @tc.name : 001.test getTrackDescription
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_GETTRECKDESCRIPTION', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done);
let mySteps = new Array(SRC_STATE, GETDESCRIPTION_PROMISE, GETDESCRIPTION_CALLBACK, RELEASE_STATE, END_STATE);
initAudioPlayer();
setCallback(mySteps, done);
audioPlayer.src = fdHead + fileDescriptor.fd;
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_LOOP
* @tc.name : 001.test loop * @tc.name : 001.test loop
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_LOOP', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_LOOP', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done); mediaTestBase.isFileOpen(fileDescriptor, done);
let playCount = 0; let playCount = 0;
let seekCount = 0; let seekCount = 0;
...@@ -342,7 +375,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -342,7 +375,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
testAudioPlayer.on('dataLoad', () => { testAudioPlayer.on('dataLoad', () => {
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME); expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('paused'); expect(testAudioPlayer.state).assertEqual('idle');
testAudioPlayer.play(); testAudioPlayer.play();
}); });
testAudioPlayer.on('play', () => { testAudioPlayer.on('play', () => {
...@@ -409,40 +442,40 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -409,40 +442,40 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_BASE_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_BASE_0100
* @tc.name : 001.test audio player (src) * @tc.name : 001.test audio player (src)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_BASE_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_BASE_0100', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done); mediaTestBase.isFileOpen(fileDescriptor, done);
playAudioSource(fdPath, DURATION_TIME, PLAY_TIME, true, done); playAudioSource(fdPath, DURATION_TIME, PLAY_TIME, true, done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_BASE_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_BASE_0200
* @tc.name : 002.test audio player (fdsrc) * @tc.name : 002.test audio player (fdsrc)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_BASE_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_BASE_0200', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done); mediaTestBase.isFileOpen(fileDescriptor, done);
playAudioSource(fileDescriptor, DURATION_TIME, PLAY_TIME, true, done); playAudioSource(fileDescriptor, DURATION_TIME, PLAY_TIME, true, done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_MULTIPLE * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_MULTIPLE
* @tc.name : 001.test two audio player * @tc.name : 001.test two audio player
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_MULTIPLE', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FUNCTION_MULTIPLE', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done); mediaTestBase.isFileOpen(fileDescriptor, done);
function waitForDone() { function waitForDone() {
console.info('case wait for next player'); console.info('case wait for next player');
......
...@@ -122,7 +122,7 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -122,7 +122,7 @@ describe('PlayerLocalTestAudioFormat', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0100
* @tc.name : 001.Playing mp3 streams * @tc.name : 001.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -133,12 +133,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -133,12 +133,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0100', 0, async function (done) {
playSource('01.mp3', done); playSource('01.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0200
* @tc.name : 002.Playing mp3 streams * @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0200', 0, async function (done) {
playSource('02.mp3', done); playSource('02.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0300
* @tc.name : 003.Playing mp3 streams * @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -165,12 +165,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -165,12 +165,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0300', 0, async function (done) {
playSource('03.mp3', done); playSource('03.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0400
* @tc.name : 004.Playing mp3 streams * @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -181,12 +181,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -181,12 +181,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP3_0400', 0, async function (done) {
playSource('04.mp3', done); playSource('04.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0100
* @tc.name : 001.Playing mp4 streams * @tc.name : 001.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -197,13 +197,13 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -197,13 +197,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0100', 0, async function (done) {
playSource('47.mp4', done); playSource('47.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0300
* @tc.name : 003.Playing mp4 streams * @tc.name : 003.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -214,12 +214,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -214,12 +214,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0300', 0, async function (done) {
playSource('49.mp4', done); playSource('49.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0400
* @tc.name : 004.Playing mp4 streams * @tc.name : 004.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -230,12 +230,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -230,12 +230,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0400', 0, async function (done) {
playSource('50.mp4', done); playSource('50.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0500
* @tc.name : 005.Playing mp4 streams * @tc.name : 005.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -246,12 +246,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -246,12 +246,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0500', 0, async function (done) {
playSource('51.mp4', done); playSource('51.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0600
* @tc.name : 006.Playing mp4 streams * @tc.name : 006.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -262,12 +262,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -262,12 +262,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0600', 0, async function (done) {
playSource('54.mp4', done); playSource('54.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0700 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0700
* @tc.name : 007.Playing mp4 streams * @tc.name : 007.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -278,12 +278,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -278,12 +278,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0700', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0700', 0, async function (done) {
playSource('64.mp4', done); playSource('64.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0800 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0800
* @tc.name : 008.Playing mp4 streams * @tc.name : 008.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -294,12 +294,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -294,12 +294,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0800', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0800', 0, async function (done) {
playSource('65.mp4', done); playSource('65.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0900 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0900
* @tc.name : 009.Playing mp4 streams * @tc.name : 009.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -310,12 +310,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -310,12 +310,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0900', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_0900', 0, async function (done) {
playSource('66.mp4', done); playSource('66.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1000 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1000
* @tc.name : 010.Playing mp4 streams * @tc.name : 010.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -326,12 +326,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -326,12 +326,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1000', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1000', 0, async function (done) {
playSource('67.mp4', done); playSource('67.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1100
* @tc.name : 011.Playing mp4 streams * @tc.name : 011.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -342,12 +342,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -342,12 +342,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1100', 0, async function (done) {
playSource('92.mp4', done); playSource('92.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1200 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1200
* @tc.name : 012.Playing mp4 streams * @tc.name : 012.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -358,12 +358,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -358,12 +358,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1200', 0, async function (done) {
playSource('93.mp4', done); playSource('93.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1300
* @tc.name : 013.Playing mp4 streams * @tc.name : 013.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -374,12 +374,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -374,12 +374,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1300', 0, async function (done) {
playSource('94.mp4', done); playSource('94.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1400
* @tc.name : 014.Playing mp4 streams * @tc.name : 014.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -390,12 +390,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -390,12 +390,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1400', 0, async function (done) {
playSource('96.mp4', done); playSource('96.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1500
* @tc.name : 015.Playing mp4 streams * @tc.name : 015.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -406,12 +406,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -406,12 +406,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1500', 0, async function (done) {
playSource('97.mp4', done); playSource('97.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1600 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1600
* @tc.name : 016.Playing mp4 streams * @tc.name : 016.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1600', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_MP4_1600', 0, async function (done) {
playSource('98.mp4', done); playSource('98.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0100
* @tc.name : 001.Playing m4a streams * @tc.name : 001.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -438,13 +438,13 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -438,13 +438,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0100', 0, async function (done) {
playSource('55.m4a', done); playSource('55.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0300 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0300
* @tc.name : 003.Playing m4a streams * @tc.name : 003.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -455,12 +455,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -455,12 +455,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0300', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0300', 0, async function (done) {
playSource('57.m4a', done); playSource('57.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0400 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0400
* @tc.name : 004.Playing m4a streams * @tc.name : 004.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -471,12 +471,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -471,12 +471,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0400', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0400', 0, async function (done) {
playSource('58.m4a', done); playSource('58.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0500 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0500
* @tc.name : 005.Playing m4a streams * @tc.name : 005.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -487,12 +487,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -487,12 +487,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0500', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0500', 0, async function (done) {
playSource('59.m4a', done); playSource('59.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0700 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0700
* @tc.name : 007.Playing m4a streams * @tc.name : 007.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -503,7 +503,7 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -503,7 +503,7 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0700', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_LOCAL_FORMAT_M4A_0700', 0, async function (done) {
playSource('62.m4a', done); playSource('62.m4a', done);
}) })
}) })
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"rm -rf /storage/media/100/local/files/Videos/audio_*" "rm -rf /storage/media/100/local/files/Videos/audio_*",
"rm -rf /storage/media/100/local/files/Audios/audio_*"
], ],
"teardown-command":[ "teardown-command":[
] ]
......
...@@ -34,14 +34,14 @@ describe('AudioRecorderEnumTest', function () { ...@@ -34,14 +34,14 @@ describe('AudioRecorderEnumTest', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_OUTPUT_FORMAT_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_OUTPUT_FORMAT_0100
* @tc.name : AudioOutputFormat * @tc.name : AudioOutputFormat
* @tc.desc : AudioOutputFormat Enumeration test * @tc.desc : AudioOutputFormat Enumeration test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_OUTPUT_FORMAT_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_OUTPUT_FORMAT_0100', 0, async function (done) {
expect(media.AudioOutputFormat.DEFAULT).assertEqual(0); expect(media.AudioOutputFormat.DEFAULT).assertEqual(0);
expect(media.AudioOutputFormat.MPEG_4).assertEqual(2); expect(media.AudioOutputFormat.MPEG_4).assertEqual(2);
expect(media.AudioOutputFormat.AMR_NB).assertEqual(3); expect(media.AudioOutputFormat.AMR_NB).assertEqual(3);
...@@ -51,14 +51,14 @@ describe('AudioRecorderEnumTest', function () { ...@@ -51,14 +51,14 @@ describe('AudioRecorderEnumTest', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_ENCODER_00_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_ENCODER_0100
* @tc.name : AudioOutputFormat * @tc.name : AudioOutputFormat
* @tc.desc : AudioOutputFormat Enumeration test * @tc.desc : AudioOutputFormat Enumeration test
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_ENCODER_00_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_ENCODER_0100', 0, async function (done) {
expect(media.AudioEncoder.DEFAULT).assertEqual(0); expect(media.AudioEncoder.DEFAULT).assertEqual(0);
expect(media.AudioEncoder.AMR_NB).assertEqual(1); expect(media.AudioEncoder.AMR_NB).assertEqual(1);
expect(media.AudioEncoder.AMR_WB).assertEqual(2); expect(media.AudioEncoder.AMR_WB).assertEqual(2);
...@@ -68,14 +68,14 @@ describe('AudioRecorderEnumTest', function () { ...@@ -68,14 +68,14 @@ describe('AudioRecorderEnumTest', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_AUDIO_DECODER_ENUM_CodecMimeType_0100 * @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_CodecMimeType_0100
* @tc.name : CodecMimeType * @tc.name : CodecMimeType
* @tc.desc : Test Enumerate CodecMimeType * @tc.desc : Test Enumerate CodecMimeType
* @tc.size : MediumTest * @tc.size : MediumTest
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_AUDIO_DECODER_ENUM_CodecMimeType_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_DECODER_ENUM_CodecMimeType_0100', 0, async function (done) {
expect(media.CodecMimeType.AUDIO_AAC).assertEqual('audio/mp4a-latm'); expect(media.CodecMimeType.AUDIO_AAC).assertEqual('audio/mp4a-latm');
expect(media.CodecMimeType.AUDIO_VORBIS).assertEqual('audio/vorbis'); expect(media.CodecMimeType.AUDIO_VORBIS).assertEqual('audio/vorbis');
expect(media.CodecMimeType.AUDIO_FLAC).assertEqual('audio/flac'); expect(media.CodecMimeType.AUDIO_FLAC).assertEqual('audio/flac');
......
...@@ -18,7 +18,7 @@ import * as mediaTestBase from '../../../../../MediaTestBase.js'; ...@@ -18,7 +18,7 @@ import * as mediaTestBase from '../../../../../MediaTestBase.js';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('RecorderLocalTestAudioAPI', function () { describe('RecorderLocalTestAudioAPI', function () {
let audioRecorder = media.createAudioRecorder(); let audioRecorder = null;
const END_STATE = 0; const END_STATE = 0;
const PRE_STATE = 1; const PRE_STATE = 1;
const START_STATE = 2; const START_STATE = 2;
...@@ -42,9 +42,9 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -42,9 +42,9 @@ describe('RecorderLocalTestAudioAPI', function () {
fileFormat : media.ContainerFormatType.CFT_MPEG_4A, fileFormat : media.ContainerFormatType.CFT_MPEG_4A,
} }
function initAudioRecorder() { function initAudioRecorder() {
if (typeof (audioRecorder) != 'undefined') { if (audioRecorder != null) {
audioRecorder.release(); audioRecorder.release();
audioRecorder = undefined; audioRecorder = null;
} }
audioRecorder = media.createAudioRecorder(); audioRecorder = media.createAudioRecorder();
} }
...@@ -83,7 +83,7 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -83,7 +83,7 @@ describe('RecorderLocalTestAudioAPI', function () {
case RELEASE_STATE: case RELEASE_STATE:
console.info('case to release'); console.info('case to release');
audioRecorder.release(); audioRecorder.release();
audioRecorder = undefined; audioRecorder = null;
break; break;
case ERROR_STATE: case ERROR_STATE:
console.info('case to wait error callback'); console.info('case to wait error callback');
...@@ -138,9 +138,7 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -138,9 +138,7 @@ describe('RecorderLocalTestAudioAPI', function () {
nextStep(mySteps,done); nextStep(mySteps,done);
}); });
audioRecorder.on('error', (err) => { audioRecorder.on('error', (err) => {
console.info(`case error called,errName is ${err.name}`);
console.info(`case error called,errCode is ${err.code}`); console.info(`case error called,errCode is ${err.code}`);
console.info(`case error called,errMessage is ${err.message}`);
mySteps.shift(); mySteps.shift();
expect(mySteps[0]).assertEqual(ERROR_STATE); expect(mySteps[0]).assertEqual(ERROR_STATE);
mySteps.shift(); mySteps.shift();
...@@ -168,36 +166,6 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -168,36 +166,6 @@ describe('RecorderLocalTestAudioAPI', function () {
console.info('afterAll case'); console.info('afterAll case');
}) })
/* *
* @tc.number : SUB_MEDIA_RECORDER_createAudioRecorder_API_0100
* @tc.name : Create an AudioRecoder Object by function of createAudioRecorder
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it('SUB_MEDIA_RECORDER_createAudioRecorder_API_0100', 0, async function (done) {
let testAudioRecorder = undefined;
testAudioRecorder= media.createAudioRecorder();
expect(testAudioRecorder != undefined).assertTrue();
done();
})
/* *
* @tc.number : SUB_MEDIA_RECORDER_AudioRecorder_Prepare_API_0100
* @tc.name : 01.creatAudioRecorder->prepare
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it('SUB_MEDIA_RECORDER_AudioRecorder_Prepare_API_0100', 0, async function (done) {
let testAudioRecorder= media.createAudioRecorder();
expect(testAudioRecorder != null).assertTrue();
testAudioRecorder.prepare(audioConfig);
done();
})
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_AudioRecorder_Prepare_API_0200 * @tc.number : SUB_MEDIA_RECORDER_AudioRecorder_Prepare_API_0200
* @tc.name : 02.start->prepare * @tc.name : 02.start->prepare
...@@ -1000,7 +968,7 @@ describe('RecorderLocalTestAudioAPI', function () { ...@@ -1000,7 +968,7 @@ describe('RecorderLocalTestAudioAPI', function () {
let mySteps = new Array(RELEASE_STATE, END_STATE); let mySteps = new Array(RELEASE_STATE, END_STATE);
setCallback(mySteps, done); setCallback(mySteps, done);
audioRecorder.release(); audioRecorder.release();
audioRecorder = undefined; audioRecorder = null;
}) })
/* * /* *
......
...@@ -45,7 +45,7 @@ describe('AudioPlayerHLSTest', function () { ...@@ -45,7 +45,7 @@ describe('AudioPlayerHLSTest', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('testHlsAudioPlayer', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HLS_0100', 0, async function (done) {
playAudioSource(HTTP_PATH + '05.hls/audio_only/index.m3u8', 219600, PLAY_TIME, false, done); playAudioSource(HTTP_PATH + '05.hls/audio_only/index.m3u8', 219600, PLAY_TIME, false, done);
}) })
...@@ -57,7 +57,7 @@ describe('AudioPlayerHLSTest', function () { ...@@ -57,7 +57,7 @@ describe('AudioPlayerHLSTest', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level2 * @tc.level : Level2
*/ */
it('testHlsAudioPlayerVariant', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HLS_0100Variant', 0, async function (done) {
playAudioSource(HTTP_PATH + '05.hls/hls_variant_audio/index.m3u8', 219600, PLAY_TIME, false, done); playAudioSource(HTTP_PATH + '05.hls/hls_variant_audio/index.m3u8', 219600, PLAY_TIME, false, done);
}) })
}) })
...@@ -134,7 +134,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () { ...@@ -134,7 +134,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('testHlsVideoPlayerSelectBitrate_0100', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_SelectBitrate_0100', 0, async function (done) {
await initVideoPlayer(done); await initVideoPlayer(done);
await setVideoUrl(HTTP_PATH + '05.hls/hls_variant/index.m3u8'); await setVideoUrl(HTTP_PATH + '05.hls/hls_variant/index.m3u8');
await playAndSetLoop(PLAY_TIME * 2); await playAndSetLoop(PLAY_TIME * 2);
...@@ -156,7 +156,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () { ...@@ -156,7 +156,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
* @tc.type : Function test * @tc.type : Function test
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('testHlsVideoPlayerSelectBitrate_0200', 0, async function (done) { it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_SelectBitrate_0200', 0, async function (done) {
await initVideoPlayer(done); await initVideoPlayer(done);
await setVideoUrl(HTTP_PATH + '05.hls/hls_variant/index.m3u8'); await setVideoUrl(HTTP_PATH + '05.hls/hls_variant/index.m3u8');
await playAndSetLoop(PLAY_TIME); await playAndSetLoop(PLAY_TIME);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册