Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9c451648
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
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看板
提交
9c451648
编写于
8月 18, 2022
作者:
M
mali
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Delete redundant code
Signed-off-by:
N
mali
<
mali81@huawei.com
>
上级
2f5117f5
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
0 addition
and
653 deletion
+0
-653
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
...in/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
+0
-159
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
...main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
+0
-494
未找到文件。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
浏览文件 @
9c451648
...
...
@@ -2545,59 +2545,6 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
}
})
/**
* @tc.number : IS_EXPOSURE_MODE_LOCKED_SUPPORTED
* @tc.name : check is exposure mode locked supported-camera0Input api
* @tc.desc : check is exposure mode locked supported-camera0Input api
* @tc.size : MEDIUM
* @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)
.then(function (data) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_LOCKED_SUPPORTED PASSED: " + data);
expect(data).assertEqual(false);
})
.catch((err) => {
console.info(TAG + "IS_EXPOSURE_MODE_LOCKED_SUPPORTED FAILED : " + err.message);
expect().assertFail();
});
console.info(TAG + "IS_EXPOSURE_MODE_LOCKED_SUPPORTED ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_LOCKED
* @tc.name : set exposure mode locked camera0 api
* @tc.desc : set exposure mode locked camera0 api
* @tc.size : MEDIUM
* @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)
.then(function () {
console.info(TAG + "Entering set exposure mode auto SUCCESS, current ExposureMode is: " + cameraObj.ExposureMode.EXPOSURE_MODE_LOCKED);
console.info(TAG + "Entering SET_EXPOSURE_MODE_Locked FAILED")
expect().assertFail()
})
.catch((err) => {
console.info(TAG + "Entering SET_EXPOSURE_MODE_LOCKED PASSED : " + err.message);
expect(true).assertTrue();
});
console.info(TAG + "Entering SET_EXPOSURE_MODE_LOCKED ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SUB_MULTIMEDIA_CAMERA_GET_EXPOSURE_MODE_LOCKED_0100
* @tc.name : get exposure mode locked camera0 api
...
...
@@ -2624,59 +2571,6 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
done
();
})
/**
* @tc.number : IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED
* @tc.name : check is exposure mode continuous auto supported-camera0Input api
* @tc.desc : check is exposure mode continuous auto supported-camera0Input api
* @tc.size : MEDIUM
* @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)
.then(function (data) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED PASSED: " + data);
expect(data).assertEqual(false);
})
.catch((err) => {
console.info(TAG + "IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED FAILED : " + err.message);
expect().assertFail();
});
console.info(TAG + "IS_EXPOSURE_MODE_CONTINUOUS_AUTO_SUPPORTED ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_CONTINUOUS_AUTO
* @tc.name : set exposure mode continuous auto camera0 api
* @tc.desc : set exposure mode continuous auto camera0 api
* @tc.size : MEDIUM
* @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)
.then(function () {
console.info(TAG + "Entering set exposure mode auto SUCCESS, current ExposureMode is: " + cameraObj.ExposureMode.EXPOSURE_MODE_CONTINUOUS_AUTO);
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO FAILED")
expect().assertFail();
})
.catch((err) => {
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO PASSED : " + err.message);
expect(true).assertTrue();
});
console.info(TAG + "Entering SET_EXPOSURE_MODE_CONTINUOUS_AUTO ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SUB_MULTIMEDIA_CAMERA_GET_EXPOSURE_MODE_CONTINUOUS_AUTO_0100
* @tc.name : get exposure mode continuous auto camera0 api
...
...
@@ -2831,59 +2725,6 @@ export default function cameraJSUnitPhotoPromise(surfaceId: any) {
done
();
})
/**
* @tc.number : IS_EXPOSURE_MODE_AUTO_SUPPORTED
* @tc.name : check is exposure mode auto supported-camera0Input api
* @tc.desc : check is exposure mode auto supported-camera0Input api
* @tc.size : MEDIUM
* @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)
.then(function (data) {
console.info(TAG + "Entering IS_EXPOSURE_MODE_AUTO_SUPPORTED PASSED: " + data);
expect(data).assertEqual(true);
})
.catch((err) => {
console.info(TAG + "IS_EXPOSURE_MODE_AUTO_SUPPORTED FAILED: " + err.message);
expect().assertFail();
});
console.info(TAG + "IS_EXPOSURE_MODE_AUTO_SUPPORTED ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SET_EXPOSURE_MODE_AUTO
* @tc.name : set exposure mode auto camera0 api
* @tc.desc : set exposure mode auto camera0 api
* @tc.size : MEDIUM
* @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)
.then(function () {
console.info(TAG + "Entering set exposure mode auto SUCCESS, current ExposureMode is: " + cameraObj.ExposureMode.EXPOSURE_MODE_AUTO);
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO PASSED")
expect(cameraObj.ExposureMode.EXPOSURE_MODE_AUTO).assertEqual(1);
})
.catch((err) => {
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO FAILED : " + err.message);
expect().assertFail();
});
console.info(TAG + "Entering SET_EXPOSURE_MODE_AUTO ends here");
await sleep(1000);
done();
})
*/
/**
* @tc.number : SUB_MULTIMEDIA_CAMERA_GET_EXPOSURE_MODE_AUTO_0100
* @tc.name : get exposure mode auto camera0 api
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
浏览文件 @
9c451648
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录