From 77ff87e271fe9899b211e12fd974f968828f1b3e Mon Sep 17 00:00:00 2001 From: ling990 Date: Wed, 18 May 2022 15:06:44 +0800 Subject: [PATCH] modify testcases Signed-off-by: ling990 Signed-off-by: ling990 --- .../src/main/js/test/VideoDecoderReliCallbackTest.test.js | 2 +- .../src/main/js/test/VideoDecoderReliPromiseTest.test.js | 2 +- .../main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js | 2 +- .../main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js | 2 +- .../main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js index 954682cb0..a78088942 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js @@ -239,7 +239,7 @@ describe('VideoDecoderReliCallbackTest', function () { console.info(`case start callback`); printError(err, expectFail); if (mySteps[0] == DECODE_STEP.FLUSH) { - timeDelay = 500; + timeDelay = 50; } setTimeout(() => { toNextStep(mySteps, done); diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js index f0caca42f..d22569cf0 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js @@ -243,7 +243,7 @@ describe('VideoDecoderReliPromiseTest', function () { videoDecodeProcessor.start().then(() => { console.info(`case start success`); if (mySteps[0] == DECODE_STEP.FLUSH) { - timeDelay = 500; + timeDelay = 50; } setTimeout(() => { toNextStep(mySteps, done); diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js index 374bdd1fb..199f60998 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js @@ -239,7 +239,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { console.info(`case start callback`); printError(err, expectFail); if (mySteps[0] == DECODE_STEP.FLUSH) { - timeDelay = 500; + timeDelay = 50; } setTimeout(() => { toNextStep(mySteps, done); diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js index a529b627b..7422bf034 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js @@ -244,7 +244,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { videoDecodeProcessor.start().then(() => { console.info(`case start success`); if (mySteps[0] == DECODE_STEP.FLUSH) { - timeDelay = 500; + timeDelay = 50; } setTimeout(() => { toNextStep(mySteps, done); diff --git a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js index 1c62aa97d..a836da69b 100644 --- a/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js @@ -206,6 +206,7 @@ describe('videoSoftwareEncoderFuncPromise', function () { } } else { console.info('not last frame, continue'); + writeFile(outputObject.data, outputObject.length); videoEncodeProcessor.freeOutputBuffer(outputObject).then(() => { console.info('release output success'); }); -- GitLab