Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
57f23b20
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看板
提交
57f23b20
编写于
9月 27, 2022
作者:
Y
yangpeng85
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update testcase implementation
Signed-off-by:
N
yangpeng85
<
yangpeng85@huawei.com
>
上级
985b2e6f
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
295 addition
and
257 deletion
+295
-257
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
...main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
+51
-52
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
...in/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
+243
-204
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
...main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
+1
-1
未找到文件。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoAsync.test.ets
浏览文件 @
57f23b20
...
...
@@ -726,31 +726,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'PA_COMMIT_CONFIG_SUCCESS_01'
,
0
,
async
function
(
done
)
{
if
(
captureSession
==
null
||
captureSession
==
undefined
)
{
console
.
info
(
TAG
+
"Entering CommitConfig captureSession == null || undefined"
);
}
else
{
console
.
info
(
TAG
+
"Entering COMMIT_CONFIG_SUCCESS to operate"
);
captureSession
.
commitConfig
(
async
(
err
,
data
)
=>
{
if
(
!
err
)
{
console
.
info
(
TAG
+
"Entering commitConfig success"
);
if
(
data
!=
null
||
data
!=
undefined
)
{
console
.
info
(
TAG
+
"Entering CommitConfig data is not null || undefined"
);
expect
(
true
)
.
assertTrue
();
console
.
info
(
TAG
+
"Entering COMMIT_CONFIG_SUCCESS PASSED"
);
}
}
else
{
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering COMMIT_CONFIG_SUCCESS FAILED : "
+
err
.
message
);
console
.
info
(
TAG
+
"Entering COMMIT_CONFIG_SUCCESS ends here"
);
}
await
sleep
(
1000
);
done
();
})
await
sleep
(
1000
);
done
();
}
})
//
it('PA_COMMIT_CONFIG_SUCCESS_01', 0, async function (done) {
//
if (captureSession == null || captureSession == undefined) {
//
console.info(TAG + "Entering CommitConfig captureSession == null || undefined");
//
} else {
//
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS to operate");
//
captureSession.commitConfig(async (err, data) => {
//
if (!err) {
//
console.info(TAG + "Entering commitConfig success");
//
if (data != null || data != undefined) {
//
console.info(TAG + "Entering CommitConfig data is not null || undefined");
//
expect(true).assertTrue();
//
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS PASSED");
//
}
//
} else {
//
expect().assertFail();
//
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS FAILED : " + err.message);
//
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS ends here");
//
}
//
await sleep(1000);
//
done();
//
})
//
await sleep(1000);
//
done();
//
}
//
})
/**
* @tc.number : isMirrorSupported_PHOTO_OUTPUT
...
...
@@ -848,31 +848,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'PA_BEGIN_CONFIG_SUCCESS_02'
,
0
,
async
function
(
done
)
{
if
(
captureSession
==
null
||
captureSession
==
undefined
)
{
console
.
info
(
TAG
+
"Entering BeginConfig captureSession == null || undefined"
);
}
else
{
console
.
info
(
TAG
+
"Entering BEGIN_CONFIG_SUCCESS to operate"
);
captureSession
.
beginConfig
(
async
(
err
,
data
)
=>
{
if
(
!
err
)
{
console
.
info
(
TAG
+
"Entering beginConfig success"
);
if
(
data
!=
null
||
data
!=
undefined
)
{
console
.
info
(
TAG
+
"Entering BeginConfig data is not null || undefined"
);
expect
(
true
)
.
assertTrue
();
console
.
info
(
TAG
+
"Entering BEGIN_CONFIG_SUCCESS beginConfig PASSED"
);
}
}
else
{
expect
()
.
assertFail
();
console
.
info
(
TAG
+
"Entering BEGIN_CONFIG_SUCCESS FAILED : "
+
err
.
message
);
console
.
info
(
TAG
+
"Entering BEGIN_CONFIG_SUCCESS ends here"
);
}
await
sleep
(
1000
);
done
();
})
await
sleep
(
1000
);
done
();
}
})
//
it('PA_BEGIN_CONFIG_SUCCESS_02', 0, async function (done) {
//
if (captureSession == null || captureSession == undefined) {
//
console.info(TAG + "Entering BeginConfig captureSession == null || undefined");
//
} else {
//
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS to operate");
//
captureSession.beginConfig(async (err, data) => {
//
if (!err) {
//
console.info(TAG + "Entering beginConfig success");
//
if (data != null || data != undefined) {
//
console.info(TAG + "Entering BeginConfig data is not null || undefined");
//
expect(true).assertTrue();
//
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS beginConfig PASSED");
//
}
//
} else {
//
expect().assertFail();
//
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS FAILED : " + err.message);
//
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS ends here");
//
}
//
await sleep(1000);
//
done();
//
})
//
await sleep(1000);
//
done();
//
}
//
})
/**
* @tc.number : REMOVE_INPUT_SUCCESS
...
...
@@ -3793,5 +3793,4 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
}
})
})
}
}
\ No newline at end of file
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitPhotoPromise.test.ets
浏览文件 @
57f23b20
此差异已折叠。
点击以展开。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraJSUnitVideoAsync.test.ets
浏览文件 @
57f23b20
...
...
@@ -4469,4 +4469,4 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) {
}
})
})
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录