From 3e57538790f7f71598c549ce2bf0474cde33742b Mon Sep 17 00:00:00 2001 From: dongwei Date: Mon, 31 Jul 2023 19:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E5=8F=82=E9=94=99=E8=AF=AFcase?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dongwei --- .../test/AvVideoRecorderFuncTestOne.test.js | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js b/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js index dfcd0db94..c8bc2fbc4 100644 --- a/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js +++ b/multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js @@ -2671,7 +2671,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.avConfigChangedPromise(avNewConfig, avRecorder, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_PROMISE_0900 end') @@ -2726,7 +2726,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.avConfigChangedPromise(avNewConfig, avRecorder, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_PROMISE_1000 end') @@ -2836,7 +2836,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.avConfigChangedPromise(avNewConfig, avRecorder, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_PROMISE_1200 end') @@ -4190,9 +4190,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); - - // avVideoRecorderTestBase.recordStart2ReleaseWithPromise(avNewConfig, avRecorder, recorderTime, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_1000 end') }) @@ -4248,7 +4246,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.recordStart2PauseWithPromise(avConfig, avRecorder, recorderTime, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_1100 end') @@ -4310,7 +4308,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_1200 end') }) @@ -4366,7 +4364,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.recordStart2StopWithPromise(avConfig, avRecorder, recorderTime, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_1300 end') @@ -4424,7 +4422,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); // avVideoRecorderTestBase.recordStart2ResetWithPromise(avConfig, avRecorder, recorderTime, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_FUNCTION_PROMISE_1400 end') @@ -5209,7 +5207,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_CALLBACK_0900 end') }) @@ -5260,7 +5258,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_CALLBACK_1000 end') }) @@ -5311,7 +5309,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_CALLBACK_1100 end') }) @@ -5362,7 +5360,7 @@ export default function avVideoRecorderTestOne() { // end END_EVENT ); - eventEmitter.emit(mySteps[0], avRecorder, avConfig, recorderTime, mySteps, done); + eventEmitter.emit(mySteps[0], avRecorder, avNewConfig, recorderTime, mySteps, done); console.info(TAG + 'SUB_MULTIMEDIA_AVRECORDER_VIDEO_PREPARE_CALLBACK_1200 end') }) -- GitLab