未验证 提交 4ec98be2 编写于 作者: O openharmony_ci 提交者: Gitee

!8861 videoPlayer测试代码事件分发逻辑错误修改

Merge pull request !8861 from FULIZHONG/OpenHarmony-4.0-Beta1
...@@ -41,7 +41,7 @@ describe('VideoPlayerAPICallbackTest', function () { ...@@ -41,7 +41,7 @@ describe('VideoPlayerAPICallbackTest', function () {
const SETVOLUME_EVENT = 'volume'; const SETVOLUME_EVENT = 'volume';
const SETSPEED_EVENT = 'speed'; const SETSPEED_EVENT = 'speed';
const FINISH_EVENT = 'finish'; const FINISH_EVENT = 'finish';
const ERROR_EVENT = 'error'; const ERROR_EVENT = 'errorEvent';
const END_EVENT = 'end'; const END_EVENT = 'end';
const VOLUME_VALUE = 1; const VOLUME_VALUE = 1;
const SPEED_VALUE = 1; const SPEED_VALUE = 1;
...@@ -388,6 +388,10 @@ describe('VideoPlayerAPICallbackTest', function () { ...@@ -388,6 +388,10 @@ describe('VideoPlayerAPICallbackTest', function () {
console.info('case wait for playbackCompleted'); 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.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0100
* @tc.name : fd is wrong * @tc.name : fd is wrong
......
...@@ -44,7 +44,7 @@ describe('VideoPlayerFuncCallbackTest', function () { ...@@ -44,7 +44,7 @@ describe('VideoPlayerFuncCallbackTest', function () {
const SETSPEED_EVENT = 'speed'; const SETSPEED_EVENT = 'speed';
const SETLOOP_EVENT = 'loop'; const SETLOOP_EVENT = 'loop';
const WAIT_EVENT = 'wait'; const WAIT_EVENT = 'wait';
const ERROR_EVENT = 'error'; const ERROR_EVENT = 'errorEvent';
const END_EVENT = 'end'; const END_EVENT = 'end';
const DELTA_TIME = 1000; const DELTA_TIME = 1000;
const NEXT_FRAME_TIME = 8333; const NEXT_FRAME_TIME = 8333;
...@@ -471,6 +471,9 @@ describe('VideoPlayerFuncCallbackTest', function () { ...@@ -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.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_SETSOURCE_0100
* @tc.name : 001.test setSorce '' (callback) * @tc.name : 001.test setSorce '' (callback)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册