diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js index 6aa39c4679da8ced8b669e0ee3e024fcf2888edb..bb249f4592a4c1bb81ad52efbf86aa326e9986a4 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js @@ -41,7 +41,7 @@ describe('VideoPlayerAPICallbackTest', function () { const SETVOLUME_EVENT = 'volume'; const SETSPEED_EVENT = 'speed'; const FINISH_EVENT = 'finish'; - const ERROR_EVENT = 'error'; + const ERROR_EVENT = 'errorEvent'; const END_EVENT = 'end'; const VOLUME_VALUE = 1; const SPEED_VALUE = 1; @@ -388,6 +388,10 @@ describe('VideoPlayerAPICallbackTest', function () { console.info('case wait for playbackCompleted'); }); + eventEmitter.on(ERROR_EVENT, (videoPlayer, steps, done) => { + console.info('case wait for error') + }); + /* * * @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0100 * @tc.name : fd is wrong diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js index 3e60d2a52148139bceaa2f7d5c45a68e265ca294..29b095a693bdaa1ddad373b2b316263f5ee379db 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js @@ -44,7 +44,7 @@ describe('VideoPlayerFuncCallbackTest', function () { const SETSPEED_EVENT = 'speed'; const SETLOOP_EVENT = 'loop'; const WAIT_EVENT = 'wait'; - const ERROR_EVENT = 'error'; + const ERROR_EVENT = 'errorEvent'; const END_EVENT = 'end'; const DELTA_TIME = 1000; const NEXT_FRAME_TIME = 8333; @@ -471,6 +471,9 @@ describe('VideoPlayerFuncCallbackTest', function () { }); }); + eventEmitter.on(ERROR_EVENT, (videoPlayer, steps, done) => { + console.info('case wait for error') + }); /* * * @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SETSOURCE_0100 * @tc.name : 001.test setSorce '' (callback)