未验证 提交 f56addcf 编写于 作者: O openharmony_ci 提交者: Gitee

!6402 【媒体子系统】CameraXTS新增isCameraMuted接口用例

Merge pull request !6402 from liuxueqi/monthly_20221018
...@@ -1242,5 +1242,31 @@ describe('CameraManagerTest', function () { ...@@ -1242,5 +1242,31 @@ describe('CameraManagerTest', function () {
await sleep(1000); await sleep(1000);
done(); 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册