Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9db467ef
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9db467ef
编写于
8月 05, 2022
作者:
D
douzheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
主线告警清零
Signed-off-by:
N
douzheng
<
douzheng@huawei.com
>
上级
1ede9d7b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
99 addition
and
3 deletion
+99
-3
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/Camera.test.ets
...js_standard/src/main/ets/MainAbility/test/Camera.test.ets
+2
-0
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitEnum.test.ets
...d/src/main/ets/MainAbility/test/CameraJSUnitEnum.test.ets
+6
-0
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
...main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
+12
-0
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
...in/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
+12
-0
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
...main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
+34
-2
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoPromise.test.ets
...in/ets/MainAbility/test/CameraJSUnitVideoPromise.test.ets
+33
-1
未找到文件。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/Camera.test.ets
浏览文件 @
9db467ef
...
...
@@ -27,7 +27,9 @@ export default function cameraKit(surfaceId: any) {
console.info(TAG + 'surfaceId: ' + surfaceId)
cameraJSUnitEnum(surfaceId)
/* CameraFormat Interface will be change
cameraJSUnitCameraFormat(surfaceId)
*/
cameraJSUnitPhotoAsync(surfaceId)
cameraJSUnitPhotoPromise(surfaceId)
cameraJSUnitVideoAsync(surfaceId)
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitEnum.test.ets
浏览文件 @
9db467ef
...
...
@@ -327,6 +327,7 @@ export default function cameraJSUnitEnum(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* CameraFormat Interface will be change
it('CAMERA_FORMAT', 0, async function (done) {
console.info(TAG + "--------------CameraFormat ------------")
console.info(TAG + "CameraFormat CAMERA_FORMAT_YUV_420_SP : " + cameraObj.CameraFormat.CAMERA_FORMAT_YUV_420_SP);
...
...
@@ -336,6 +337,7 @@ export default function cameraJSUnitEnum(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : FLASHMODE
...
...
@@ -409,6 +411,7 @@ export default function cameraJSUnitEnum(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('EXPOSUREMODE', 0, async function (done) {
console.info(TAG + "--------------ExposureMode ------------")
console.info(TAG + "ExposureMode EXPOSURE_MODE_LOCKED : " + cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED);
...
...
@@ -420,6 +423,7 @@ export default function cameraJSUnitEnum(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : ExposureState
...
...
@@ -489,6 +493,7 @@ export default function cameraJSUnitEnum(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('VideoStabilization', 0, async function (done) {
console.info(TAG + "--------------VideoStabilization ------------")
console.info(TAG + "VideoStabilization OFF : " + cameraObj.VideoStabilizationMode.OFF);
...
...
@@ -504,5 +509,6 @@ export default function cameraJSUnitEnum(surfaceId: any) {
await sleep(1000);
done();
})
*/
})
}
\ No newline at end of file
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
浏览文件 @
9db467ef
...
...
@@ -2781,6 +2781,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_LOCKED_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_LOCKED_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED, async (err, data) => {
...
...
@@ -2803,6 +2804,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_LOCKED
...
...
@@ -2812,6 +2814,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_LOCKED', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_LOCKED to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED, async (err, data) => {
...
...
@@ -2830,6 +2833,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_LOCKED
...
...
@@ -2867,6 +2871,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO, async (err, data) => {
...
...
@@ -2889,6 +2894,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -2898,6 +2904,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_CONTINUOUS_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO, async (err, data) => {
...
...
@@ -2916,6 +2923,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -3094,6 +3102,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_AUTO_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO, async (err, data) => {
...
...
@@ -3116,6 +3125,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_AUTO
...
...
@@ -3125,6 +3135,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO, async (err, data) => {
...
...
@@ -3145,6 +3156,7 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_AUTO
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
浏览文件 @
9db467ef
...
...
@@ -2553,6 +2553,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_LOCKED_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_LOCKED_SUPPORTED to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED)
...
...
@@ -2568,6 +2569,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_LOCKED
...
...
@@ -2577,6 +2579,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_LOCKED', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_Locked to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED)
...
...
@@ -2593,6 +2596,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_LOCKED
...
...
@@ -2628,6 +2632,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO)
...
...
@@ -2643,6 +2648,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -2652,6 +2658,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_CONTINUOUS_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO)
...
...
@@ -2668,6 +2675,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -2831,6 +2839,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_AUTO_SUPPORTED to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO)
...
...
@@ -2846,6 +2855,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_AUTO
...
...
@@ -2855,6 +2865,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO)
...
...
@@ -2871,6 +2882,7 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
await sleep(1000);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_AUTO
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
浏览文件 @
9db467ef
...
...
@@ -1306,6 +1306,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTEDOFF', 0, async function (done) {
console.info(TAG + 'Entering ISVIDEOSTABILIZATIONMODESUPPORTEDOFF to operate')
captureSession.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.OFF, async (err, data) => {
...
...
@@ -1325,7 +1326,8 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEOFF
* @tc.name : SetVideoStabilizationModeOff
...
...
@@ -1334,6 +1336,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEOFF', 0, async function (done) {
console.info(TAG + 'Entering SET_VIDEOSTABILIZATIONMODEOFF to operate')
captureSession.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.OFF, async (err, data) => {
...
...
@@ -1353,7 +1356,8 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATION_MODE_OFF
* @tc.name : getVideoStabilizationModeOff
...
...
@@ -1391,6 +1395,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_LOW', 0, async function (done) {
console.info(TAG + 'Entering ISVIDEOSTABILIZATIONMODESUPPORTED_LOW to operate')
captureSession.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.LOW, async (err, data) => {
...
...
@@ -1412,6 +1417,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODELOW
...
...
@@ -1421,6 +1427,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODELOW', 0, async function (done) {
console.info(TAG + 'Entering SET_VIDEOSTABILIZATIONMODELOW to operate')
captureSession.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.LOW, async (err, data) => {
...
...
@@ -1440,6 +1447,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATION_MODE_LOW
...
...
@@ -1478,6 +1486,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_MIDDLE', 0, async function (done) {
console.info(TAG + 'Entering ISVIDEOSTABILIZATIONMODESUPPORTED_MIDDLE to operate')
captureSession.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.MIDDLE, async (err, data) => {
...
...
@@ -1499,6 +1508,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEMIDDLE
...
...
@@ -1508,6 +1518,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEMIDDLE', 0, async function (done) {
console.info(TAG + 'Entering SET_VIDEOSTABILIZATIONMODEMIDDLE to operate')
captureSession.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.MIDDLE, async (err, data) => {
...
...
@@ -1527,6 +1538,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATION_MODE_MIDDLE
...
...
@@ -1565,6 +1577,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_HIGH', 0, async function (done) {
console.info(TAG + 'Entering ISVIDEOSTABILIZATIONMODESUPPORTED_HIGH to operate')
captureSession.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.HIGH, async (err, data) => {
...
...
@@ -1584,6 +1597,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEHIGH
...
...
@@ -1593,6 +1607,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEHIGH', 0, async function (done) {
console.info(TAG + 'Entering SET_VIDEOSTABILIZATIONMODEHIGH to operate')
captureSession.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.HIGH, async (err, data) => {
...
...
@@ -1612,6 +1627,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATION_MODE_HIGH
...
...
@@ -1650,6 +1666,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_AUTO', 0, async function (done) {
console.info(TAG + 'Entering ISVIDEOSTABILIZATIONMODESUPPORTED_AUTO to operate')
captureSession.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.AUTO, async (err, data) => {
...
...
@@ -1671,6 +1688,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEAUTO
...
...
@@ -1680,6 +1698,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEAUTO', 0, async function (done) {
console.info(TAG + 'Entering SET_VIDEOSTABILIZATIONMODEAUTO to operate')
captureSession.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.AUTO, async (err, data) => {
...
...
@@ -1699,6 +1718,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1)
done()
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATION_MODE_AUTO
...
...
@@ -3268,6 +3288,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_LOCKED_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_LOCKED_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED, async (err, data) => {
...
...
@@ -3290,6 +3311,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_LOCKED
...
...
@@ -3299,6 +3321,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_LOCKED', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_LOCKED to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED, async (err, data) => {
...
...
@@ -3317,6 +3340,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_LOCKED
...
...
@@ -3495,6 +3519,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_AUTO_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO, async (err, data) => {
...
...
@@ -3517,6 +3542,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_AUTO
...
...
@@ -3526,6 +3552,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO, async (err, data) => {
...
...
@@ -3546,6 +3573,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_AUTO
...
...
@@ -3697,6 +3725,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED to operate");
camera0Input.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO, async (err, data) => {
...
...
@@ -3719,6 +3748,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -3728,6 +3758,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_CONTINUOUS_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO to operate");
camera0Input.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO, async (err, data) => {
...
...
@@ -3746,6 +3777,7 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoPromise.test.ets
浏览文件 @
9db467ef
...
...
@@ -1300,6 +1300,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTEDOFF', 0, async function (done) {
console.info(TAG + "Entering ISVIDEOSTABILIZATIONMODESUPPORTEDOFF to operate");
await captureSessionPromise.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.OFF)
...
...
@@ -1317,6 +1318,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEOFF
...
...
@@ -1326,6 +1328,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEOFF', 0, async function (done) {
console.info(TAG + "Entering SET_VIDEOSTABILIZATIONMODEOFF to operate");
await captureSessionPromise.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.OFF)
...
...
@@ -1342,6 +1345,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATIONMODEOFF
...
...
@@ -1377,6 +1381,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_LOW', 0, async function (done) {
console.info(TAG + "Entering ISVIDEOSTABILIZATIONMODESUPPORTED_LOW to operate");
await captureSessionPromise.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.LOW)
...
...
@@ -1394,7 +1399,8 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODELOW
* @tc.name : SetVideoStabilizationModelow
...
...
@@ -1403,6 +1409,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODELOW', 0, async function (done) {
console.info(TAG + "Entering SET_VIDEOSTABILIZATIONMODELOW to operate");
await captureSessionPromise.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.LOW)
...
...
@@ -1419,6 +1426,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATIONMODELOW
...
...
@@ -1454,6 +1462,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_MIDDLE', 0, async function (done) {
console.info(TAG + "Entering ISVIDEOSTABILIZATIONMODESUPPORTED_MIDDLE to operate");
await captureSessionPromise.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.MIDDLE)
...
...
@@ -1471,6 +1480,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEMIDDLE
...
...
@@ -1480,6 +1490,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEMIDDLE', 0, async function (done) {
console.info(TAG + "Entering SET_VIDEOSTABILIZATIONMODEMIDDLE to operate");
await captureSessionPromise.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.MIDDLE)
...
...
@@ -1496,6 +1507,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATIONMODEMIDDLE
...
...
@@ -1531,6 +1543,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_HIGH', 0, async function (done) {
console.info(TAG + "Entering ISVIDEOSTABILIZATIONMODESUPPORTED_HIGH to operate");
await captureSessionPromise.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.HIGH)
...
...
@@ -1548,6 +1561,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEHIGH
...
...
@@ -1557,6 +1571,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEHIGH', 0, async function (done) {
console.info(TAG + "Entering SET_VIDEOSTABILIZATIONMODEHIGH to operate");
await captureSessionPromise.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.HIGH)
...
...
@@ -1573,6 +1588,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATIONMODEHIGH
...
...
@@ -1608,6 +1624,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('ISVIDEOSTABILIZATIONMODESUPPORTED_AUTO', 0, async function (done) {
console.info(TAG + "Entering ISVIDEOSTABILIZATIONMODESUPPORTED_AUTO to operate");
await captureSessionPromise.isVideoStabilizationModeSupported(cameraObj.VideoStabilizationMode.AUTO)
...
...
@@ -1625,6 +1642,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_VIDEOSTABILIZATIONMODEAUTO
...
...
@@ -1634,6 +1652,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* VideoStabilizationMode Interface will be change
it('SET_VIDEOSTABILIZATIONMODEAUTO', 0, async function (done) {
console.info(TAG + "Entering SET_VIDEOSTABILIZATIONMODEAUTO to operate");
await captureSessionPromise.setVideoStabilizationMode(cameraObj.VideoStabilizationMode.AUTO)
...
...
@@ -1650,6 +1669,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_VIDEOSTABILIZATIONMODEAUTO
...
...
@@ -3049,6 +3069,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_LOCKED_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_LOCKED_SUPPORTED to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED)
...
...
@@ -3064,6 +3085,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_LOCKED
...
...
@@ -3073,6 +3095,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_LOCKED', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_Locked to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED)
...
...
@@ -3089,6 +3112,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_LOCKED
...
...
@@ -3252,6 +3276,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_AUTO_SUPPORTED', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_AUTO_SUPPORTED to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO)
...
...
@@ -3267,6 +3292,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_AUTO
...
...
@@ -3276,6 +3302,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO)
...
...
@@ -3292,6 +3319,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_AUTO
...
...
@@ -3429,6 +3457,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('IS_EXPOSURE_MODE_CONTINUOUS_AUTO', 0, async function (done) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_CONTINUOUS_AUTO to operate");
await camera0InputPromise.isExposureModeSupported(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO)
...
...
@@ -3444,6 +3473,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
@@ -3453,6 +3483,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
/* EXPOSUREMODE Interface will be change
it('SET_EXPOSURE_MODE_CONTINUOUS_AUTO', 0, async function (done) {
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO to operate");
await camera0InputPromise.setExposureMode(cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO)
...
...
@@ -3469,6 +3500,7 @@ export default function cameraJSUnitVideoPromise(surfaceId: any) {
await sleep(1);
done();
})
*/
/**
* @tc.number : GET_EXPOSURE_MODE_CONTINUOUS_AUTO
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录