diff --git a/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraManagerTest.test.ets b/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraManagerTest.test.ets index bafe89cce2b55d8186f0082bdf7fb8bd458bb35a..230549b434a1f6b670d7a42222afc43fd3d1c8cc 100755 --- a/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraManagerTest.test.ets +++ b/multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraManagerTest.test.ets @@ -1242,5 +1242,31 @@ describe('CameraManagerTest', function () { await sleep(1000); done(); }) + + /** + * @tc.number : SUB_MULTIMEDIA_CAMERA_IS_CAMERA_MUTED_0100 + * @tc.name : Get camera mute + * @tc.desc : Get camera mute + * @tc.size : MEDIUM + * @tc.type : Function + * @tc.level : Level 2 + */ + it('SUB_MULTIMEDIA_CAMERA_IS_CAMERA_MUTED_0100', 2, async function (done) { + console.info(TAG + "--------------SUB_MULTIMEDIA_CAMERA_IS_CAMERA_MUTED_0100--------------"); + if (isEmpty(mCameraManager)) { + console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_IS_CAMERA_MUTED_0100 cameraManager == null || undefined") + expect().assertFail(); + } + try { + let isCameraMuted = mCameraManager.isCameraMuted(); + console.info(TAG + "Entering SUB_MULTIMEDIA_CAMERA_IS_CAMERA_MUTED_0100 isCameraMuted : " + isCameraMuted); + expect(isEmpty(isCameraMuted)).assertFalse(); + } catch (err) { + console.log(TAG + "isCameraMuted has failed for " + err.message); + expect().assertFail(); + } + await sleep(1000); + done(); + }) }) } \ No newline at end of file