You need to sign in or sign up before continuing.
提交 3359c29b 编写于 作者: O openharmony_ci 提交者: Gitee

!1069 更新测试代码

Merge pull request !1069 from tianfenxia/master
......@@ -119,7 +119,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
audioPlayer.loop = mySteps[SECOND_INDEX];
mySteps.shift();
mySteps.shift();
nextStep(mySteps);
nextStep(mySteps,done);
break;
default:
break;
......
......@@ -114,14 +114,14 @@ describe('PlayerLocalTestAudioAPI', function () {
mySteps.shift();
audioPlayer.release();
audioPlayer = undefined;
nextStep(mySteps);
nextStep(mySteps,done);
break;
case LOOP_STATE:
loopValue = mySteps[SECOND_INDEX];
mySteps.shift();
mySteps.shift();
audioPlayer.loop = loopValue;
nextStep(mySteps);
nextStep(mySteps,done);
break;
default:
break;
......@@ -223,7 +223,7 @@ describe('PlayerLocalTestAudioAPI', function () {
mySteps.shift();
mySteps.shift();
mySteps.shift();
nextStep(mySteps);
nextStep(mySteps,done);
} else if (mySteps[0] == ERROR_STATE) {
mySteps.shift();
} else if (mySteps[0] == END_STATE) {
......@@ -635,7 +635,7 @@ describe('PlayerLocalTestAudioAPI', function () {
initAudioPlayer();
expect(audioPlayer.src).assertEqual(undefined);
expect(audioPlayer.duration).assertEqual(undefined);
expect(audioPlayer.currentTime).assertEqual(undefined);
expect(audioPlayer.currentTime).assertEqual(0);
expect(audioPlayer.state).assertEqual('idle');
expect(audioPlayer.loop).assertEqual(false);
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册