From 1151d03f85e9faa9d7e763bacf91ec5ca9c38f1e Mon Sep 17 00:00:00 2001 From: flz Date: Mon, 17 Apr 2023 20:41:56 +0800 Subject: [PATCH] add videoPlayer testcases Signed-off-by: FULIZHONG Signed-off-by: flz --- .../src/main/js/test/VideoPlayerFuncPromiseTest.test.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js index 8c863f41d..fe383eeb6 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js @@ -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; -- GitLab