提交 9c1f5c58 编写于 作者: F fulizhong

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

Signed-off-by: Nfulizhong <fulizhong@huawei.com>
上级 4f7b5cf9
......@@ -47,7 +47,7 @@ describe('VideoPlayerAPICallbackTest', function () {
const SPEED_VALUE = 1;
const NEXT_FRAME_TIME = 8333;
const PREV_FRAME_TIME = 4166;
const DELTA_TIME = 100;
const DELTA_TIME = 300;
let surfaceID = '';
let fileDescriptor = null;
const pagePath1 = 'pages/surfaceTest/surfaceTest';
......
......@@ -48,7 +48,7 @@ describe('VideoPlayerFuncCallbackTest', function () {
const DELTA_TIME = 1000;
const NEXT_FRAME_TIME = 8333;
const PREV_FRAME_TIME = 4166;
const DELTA_SEEK_TIME = 100;
const DELTA_SEEK_TIME = 300;
let surfaceID = '';
let fdHead = 'fd://';
let fileDescriptor = null;
......
......@@ -30,7 +30,7 @@ describe('VideoPlayerFuncPromiseTest', function () {
const DELTA_TIME = 1500;
const NEXT_FRAME_TIME = 8333;
const PREV_FRAME_TIME = 4166;
const DELTA_SEEK_TIME = 100;
const DELTA_SEEK_TIME = 300;
let surfaceID = '';
let fdHead = 'fd://';
let fileDescriptor = null;
......@@ -244,7 +244,7 @@ describe('VideoPlayerFuncPromiseTest', function () {
expect(videoPlayer.state).assertEqual('playing');
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
let endTime = videoPlayer.currentTime;
expect(Math.abs(endTime - startTime - PLAY_TIME)).assertLess(DELTA_TIME);
expect(Math.abs(endTime - startTime - 1000)).assertLess(DELTA_TIME);
startTime = videoPlayer.currentTime;
await videoPlayer.setSpeed(media.PlaybackSpeed.SPEED_FORWARD_0_75_X).then((speedMode) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册