提交 387ab204 编写于 作者: R ruanmeng

coedc check Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>

Signed-off-by: Nruanmeng <ruanmeng@huawei.com>
上级 4cf570d3
...@@ -770,7 +770,6 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -770,7 +770,6 @@ describe('PlayerLocalTestAudioFUNC', function () {
let isTimeDone = false; let isTimeDone = false;
let testAudioPlayer = media.createAudioPlayer(); let testAudioPlayer = media.createAudioPlayer();
testAudioPlayer.on('dataLoad', () => { testAudioPlayer.on('dataLoad', () => {
console.info(`case dataLoad called`);
expect(testAudioPlayer.currentTime).assertEqual(0); expect(testAudioPlayer.currentTime).assertEqual(0);
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME); expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('paused'); expect(testAudioPlayer.state).assertEqual('paused');
...@@ -778,7 +777,6 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -778,7 +777,6 @@ describe('PlayerLocalTestAudioFUNC', function () {
testAudioPlayer.play(); testAudioPlayer.play();
}); });
testAudioPlayer.on('play', () => { testAudioPlayer.on('play', () => {
console.info(`case play called`);
console.info(`case play currentTime is ${testAudioPlayer.currentTime}`); console.info(`case play currentTime is ${testAudioPlayer.currentTime}`);
expect(testAudioPlayer.duration).assertEqual(DURATION_TIME); expect(testAudioPlayer.duration).assertEqual(DURATION_TIME);
expect(testAudioPlayer.state).assertEqual('playing'); expect(testAudioPlayer.state).assertEqual('playing');
...@@ -800,22 +798,18 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -800,22 +798,18 @@ describe('PlayerLocalTestAudioFUNC', function () {
} }
seekCount++ seekCount++
console.info(`case seekDoneTime is ${seekDoneTime}`); console.info(`case seekDoneTime is ${seekDoneTime}`);
console.info(`case seek called`);
}); });
testAudioPlayer.on('finish', () => { testAudioPlayer.on('finish', () => {
expect(testAudioPlayer.state).assertEqual('playing'); expect(testAudioPlayer.state).assertEqual('playing');
console.info(`case finish called`);
}); });
testAudioPlayer.on('reset', () => { testAudioPlayer.on('reset', () => {
expect(testAudioPlayer.state).assertEqual('idle'); expect(testAudioPlayer.state).assertEqual('idle');
console.info(`case reset called`);
testAudioPlayer.release(); testAudioPlayer.release();
isTimeDone = true; isTimeDone = true;
}); });
testAudioPlayer.src = AUDIO_SOURCE; testAudioPlayer.src = AUDIO_SOURCE;
setTimeout(function() { setTimeout(function() {
if (!isTimeDone) { if (!isTimeDone) {
console.info(`case is time out!`);
expect(isTimeOut).assertTrue(); expect(isTimeOut).assertTrue();
} }
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册