提交 fdbf671d 编写于 作者: F flz

modify testcases Signed-off-by: FULIZHONG<fulizhong1@huawei.com>

Signed-off-by: Nflz <fulizhong1@huawei.com>
上级 beca8365
......@@ -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.
先完成此消息的编辑!
想要评论请 注册