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

!8471 videoPlayer本地播放测试用例不应该校验网络缓冲,去除校验部分逻辑

Merge pull request !8471 from FULIZHONG/0417code
......@@ -530,7 +530,6 @@ describe('VideoPlayerFuncPromiseTest', function () {
it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_LOOP_0100', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done);
let videoPlayer = null;
let bufferCount = false;
await media.createVideoPlayer().then((video) => {
if (video != null) {
videoPlayer = video;
......@@ -552,15 +551,12 @@ describe('VideoPlayerFuncPromiseTest', function () {
await videoPlayer.release().then(() => {
console.info('case release called!!');
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
expect(bufferCount).assertEqual(true);
done();
});
videoPlayer.on('bufferingUpdate', (infoType, value) => {
console.info('case bufferingUpdate success infoType is ' + infoType);
console.info('case bufferingUpdate success value is ' + value);
bufferCount = true;
console.info('case bufferingUpdate bufferCount value is ' + bufferCount);
});
videoPlayer.fdSrc = fileDescriptor;
......@@ -855,7 +851,6 @@ describe('VideoPlayerFuncPromiseTest', function () {
it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_PROMISE_VIDEOSCALETYPE_0200', 0, async function (done) {
mediaTestBase.isFileOpen(fileDescriptor, done);
let videoPlayer = null;
let bufferCount = false;
let count = 0;
await media.createVideoPlayer().then((video) => {
if (video != null) {
......@@ -878,14 +873,12 @@ describe('VideoPlayerFuncPromiseTest', function () {
await videoPlayer.release().then(() => {
console.info('case release called!!');
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
expect(bufferCount).assertEqual(true);
done();
});
videoPlayer.on('bufferingUpdate', (infoType, value) => {
console.info('case bufferingUpdate success infoType is ' + infoType);
console.info('case bufferingUpdate success value is ' + value);
bufferCount = true;
});
videoPlayer.url = fdPath;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册