From edbf5628a02f50a7e4362f58a87a64bd8ab3f78b Mon Sep 17 00:00:00 2001 From: songchunpeng Date: Tue, 29 Nov 2022 09:34:52 +0800 Subject: [PATCH] modify on focusStateChange Signed-off-by: songchunpeng --- .../test/CameraSessionBaseTest.test.ets | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets b/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets index 8907d04aa..39cb5abd0 100755 --- a/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets +++ b/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets @@ -1575,19 +1575,8 @@ export default function cameraSessionTest(surfaceId: any) { await mCameraSession.start(); - await beginCameraSessionConfig(); - - mCameraSession.setFocusMode(cameraObj.FocusMode.FOCUS_MODE_AUTO); - - await commitCameraSessionConfig(); - - await sleep(100); - - await beginCameraSessionConfig(); - - mCameraSession.setFocusMode(cameraObj.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO); - - await commitCameraSessionConfig(); + await mCameraSession.setFocusMode(cameraObj.FocusMode.FOCUS_MODE_AUTO); + await mCameraSession.setFocusMode(cameraObj.FocusMode.FOCUS_MODE_CONTINUOUS_AUTO); await sleep(100); -- GitLab