提交 c8b0153c 编写于 作者: F fulizhong

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

Signed-off-by: Nfulizhong <fulizhong@huawei.com>
上级 ff50a133
......@@ -159,7 +159,7 @@ describe('PlayerLocalTestAudioAPI', function () {
console.info(`case dataLoad called`);
expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused');
expect(audioPlayer.state).assertEqual('idle');
nextStep(mySteps,done);
});
audioPlayer.on('play', () => {
......@@ -631,9 +631,9 @@ describe('PlayerLocalTestAudioAPI', function () {
*/
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.src).assertEqual('');
expect(audioPlayer.duration).assertEqual(-1);
expect(audioPlayer.currentTime).assertEqual(-1);
expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.loop).assertEqual(false);
done();
......@@ -654,7 +654,7 @@ describe('PlayerLocalTestAudioAPI', function () {
expect(audioPlayer.src).assertEqual(fdPath);
expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused');
expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.loop).assertEqual(false);
done();
})
......
......@@ -162,7 +162,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
console.info(`case dataLoad called`);
expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.duration).assertEqual(DURATION_TIME);
expect(audioPlayer.state).assertEqual('paused');
expect(audioPlayer.state).assertEqual('idle');
nextStep(mySteps,done);
});
audioPlayer.on('play', () => {
......@@ -767,7 +767,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
testAudioPlayer.on('dataLoad', () => {
expect(testAudioPlayer.currentTime).assertEqual(0);
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('paused');
expect(testAudioPlayer.state).assertEqual('idle');
testAudioPlayer.loop = true;
testAudioPlayer.play();
});
......
......@@ -74,7 +74,7 @@ describe('PlayerLocalTestAudioFormat', function () {
await getFd(audioSource);
audioPlayer.on('dataLoad', () => {
console.info('case set source success');
expect(audioPlayer.state).assertEqual('paused');
expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.currentTime).assertEqual(0);
audioPlayer.play();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册