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

!8857 修改部分videoPlayer测试代码错误逻辑

Merge pull request !8857 from FULIZHONG/0601flz
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册