提交 7516046d 编写于 作者: O openharmony_ci 提交者: Gitee

!1324 删除不匹配测试用例

Merge pull request !1324 from FULIZHONG/1234
......@@ -20,7 +20,6 @@ group("multimedia") {
"audio/audio_js_standard/audioManager:audio_manager_js_hap",
"audio/audio_js_standard/audioPlayer:audio_player_js_hap",
"audio/audio_js_standard/audioPlayer_API:audio_player_api_js_hap",
"audio/audio_js_standard/audioRecorder:audio_recorder_js_hap",
"media/media_cpp_test_standard:ActsMediaCppStandardTest",
]
} else {
......
......@@ -771,73 +771,6 @@ describe('PlayerLocalTestAudioFUNC', function () {
audioPlayer.src = AUDIO_SOURCE;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600
* @tc.name : 036.Loop Play
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600', 0, async function (done) {
let playCount = 0;
let seekCount = 0;
let isTimeDone = false;
let testAudioPlayer = media.createAudioPlayer();
testAudioPlayer.on('dataLoad', () => {
console.info(`case dataLoad called`);
expect(testAudioPlayer.currentTime).assertEqual(0);
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('paused');
testAudioPlayer.loop = true;
testAudioPlayer.play();
});
testAudioPlayer.on('play', () => {
console.info(`case play called`);
console.info(`case play currentTime is ${testAudioPlayer.currentTime}`);
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('playing');
sleep(PLAY_TIME);
if (playCount > 0) {
return;
}
playCount++
testAudioPlayer.seek(DURATION_TIME);
});
testAudioPlayer.on('timeUpdate', (seekDoneTime) => {
if (typeof (seekDoneTime) == 'undefined') {
console.info(`case seek filed,errcode is ${seekDoneTime}`);
return;
}
if (seekCount > 0) {
testAudioPlayer.reset();
return;
}
seekCount++
console.info(`case seekDoneTime is ${seekDoneTime}`);
console.info(`case seek called`);
});
testAudioPlayer.on('finish', () => {
expect(testAudioPlayer.state).assertEqual('playing');
console.info(`case finish called`);
});
testAudioPlayer.on('reset', () => {
expect(testAudioPlayer.state).assertEqual('idle');
console.info(`case reset called`);
testAudioPlayer.release();
isTimeDone = true;
});
testAudioPlayer.src = AUDIO_SOURCE;
setTimeout(function() {
if (!isTimeDone) {
console.info(`case is time out!`);
expect(isTimeOut).assertTrue();
}
done();
}, TIME_OUT);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3700
* @tc.name : 037.set volume 0 to 1
......
......@@ -136,57 +136,6 @@ describe('PlayerLocalTestAudioFormat', function () {
playSource(BASIC_PATH + '01.mp3', done);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200
* @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 16/32
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200', 0, async function (done) {
playSource(BASIC_PATH + '02.mp3', done);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300
* @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 32
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300', 0, async function (done) {
playSource(BASIC_PATH + '03.mp3', done);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400
* @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 64
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400', 0, async function (done) {
playSource(BASIC_PATH + '04.mp3', done);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0100
* @tc.name : 001.Playing mp4 streams
......
......@@ -622,25 +622,6 @@ describe('PlayerLocalTestAudioAPI', function () {
audioPlayer.src = AUDIO_SOURCE;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0100
* @tc.name : 01.get parameters after createAudioPlayer
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it('SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0100', 0, async function (done) {
initAudioPlayer();
expect(audioPlayer.src).assertEqual(undefined);
expect(audioPlayer.duration).assertEqual(undefined);
expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.loop).assertEqual(false);
done();
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0200
* @tc.name : 02.get parameters after src
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册