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

!7337 媒体子系统xts用例适配xts用例修改

Merge pull request !7337 from FULIZHONG/monthly_20221018
......@@ -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.
先完成此消息的编辑!
想要评论请 注册