diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js index 588cf2fe6f1e051e204a2ca1cfacf6e2785fe17f..b9826f289bcd30832e9ab9b8cea408b464e2ee28 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js @@ -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(); }) diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js index a17fd38003601953b0c45b826f10a3508a99a383..297db8c77a73e842797a7241f9e806cee8e0f971 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js @@ -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(); }); diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js index bcde2284bc305211f6484646340982e970324fbd..943356a85dab89e68e62edcd15f0e9789e713628 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js @@ -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(); });