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 e86f3b57b8bc312375cd7a165718076f2692359a..bcde2284bc305211f6484646340982e970324fbd 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 @@ -72,7 +72,6 @@ describe('PlayerLocalTestAudioFormat', function () { async function playSource(audioSource, done) { let audioPlayer = media.createAudioPlayer(); await getFd(audioSource); - audioPlayer.src = fdPath; audioPlayer.on('dataLoad', () => { console.info('case set source success'); expect(audioPlayer.state).assertEqual('paused'); @@ -142,6 +141,7 @@ describe('PlayerLocalTestAudioFormat', function () { expect().assertFail(); done(); }); + audioPlayer.src = fdPath; } /* * diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js index 41d2c346912fe28e356d650ea441db04bf5e2f25..2f9cdd38474273481a8348af8b73c1146c4de185 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerEnumTest.test.js @@ -44,8 +44,6 @@ describe('VideoPlayerEnumTest', function () { it('SUB_MEDIA_VIDEO_PLAYER_ENUM_SEEK_MODE_00_0100', 0, async function (done) { expect(media.SeekMode.SEEK_NEXT_SYNC).assertEqual(0); expect(media.SeekMode.SEEK_PREV_SYNC).assertEqual(1); - expect(media.SeekMode.SEEK_CLOSEST_SYNC).assertEqual(2); - expect(media.SeekMode.SEEK_CLOSEST).assertEqual(3); done(); }) @@ -71,20 +69,6 @@ describe('VideoPlayerEnumTest', function () { done(); }) - /* * - * @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100 - * @tc.name : AVDataSourceError - * @tc.desc : AVDataSourceError Enumeration test - * @tc.size : MediumTest - * @tc.type : Function test - * @tc.level : Level0 - */ - it('SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100', 0, async function (done) { - expect(media.AVDataSourceError.SOURCE_ERROR_IO).assertEqual(-2); - expect(media.AVDataSourceError.SOURCE_ERROR_EOF).assertEqual(-1); - done(); - }) - /* * * @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_BUFFERING_INFO_TYPE_00_0100 * @tc.name : BufferingInfoType @@ -143,7 +127,6 @@ describe('VideoPlayerEnumTest', function () { it('SUB_MEDIA_VIDEO_PLAYER_ENUM_MEDIA_TYPE_00_0100', 0, async function (done) { expect(media.MediaType.MEDIA_TYPE_AUD).assertEqual(0); expect(media.MediaType.MEDIA_TYPE_VID).assertEqual(1); - expect(media.MediaType.MEDIA_TYPE_SUBTITLE).assertEqual(2); done(); })