提交 57f23b20 编写于 作者: Y yangpeng85

update testcase implementation

Signed-off-by: Nyangpeng85 <yangpeng85@huawei.com>
上级 985b2e6f
...@@ -726,31 +726,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) { ...@@ -726,31 +726,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('PA_COMMIT_CONFIG_SUCCESS_01', 0, async function (done) { // it('PA_COMMIT_CONFIG_SUCCESS_01', 0, async function (done) {
if (captureSession == null || captureSession == undefined) { // if (captureSession == null || captureSession == undefined) {
console.info(TAG + "Entering CommitConfig captureSession == null || undefined"); // console.info(TAG + "Entering CommitConfig captureSession == null || undefined");
} else { // } else {
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS to operate"); // console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS to operate");
captureSession.commitConfig(async (err, data) => { // captureSession.commitConfig(async (err, data) => {
if (!err) { // if (!err) {
console.info(TAG + "Entering commitConfig success"); // console.info(TAG + "Entering commitConfig success");
if (data != null || data != undefined) { // if (data != null || data != undefined) {
console.info(TAG + "Entering CommitConfig data is not null || undefined"); // console.info(TAG + "Entering CommitConfig data is not null || undefined");
expect(true).assertTrue(); // expect(true).assertTrue();
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS PASSED"); // console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS PASSED");
} // }
} else { // } else {
expect().assertFail(); // expect().assertFail();
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS FAILED : " + err.message); // console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS FAILED : " + err.message);
console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS ends here"); // console.info(TAG + "Entering COMMIT_CONFIG_SUCCESS ends here");
} // }
await sleep(1000); // await sleep(1000);
done(); // done();
}) // })
await sleep(1000); // await sleep(1000);
done(); // done();
} // }
}) // })
/** /**
* @tc.number : isMirrorSupported_PHOTO_OUTPUT * @tc.number : isMirrorSupported_PHOTO_OUTPUT
...@@ -848,31 +848,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) { ...@@ -848,31 +848,31 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
* @tc.type : Function * @tc.type : Function
* @tc.level : Level 0 * @tc.level : Level 0
*/ */
it('PA_BEGIN_CONFIG_SUCCESS_02', 0, async function (done) { // it('PA_BEGIN_CONFIG_SUCCESS_02', 0, async function (done) {
if (captureSession == null || captureSession == undefined) { // if (captureSession == null || captureSession == undefined) {
console.info(TAG + "Entering BeginConfig captureSession == null || undefined"); // console.info(TAG + "Entering BeginConfig captureSession == null || undefined");
} else { // } else {
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS to operate"); // console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS to operate");
captureSession.beginConfig(async (err, data) => { // captureSession.beginConfig(async (err, data) => {
if (!err) { // if (!err) {
console.info(TAG + "Entering beginConfig success"); // console.info(TAG + "Entering beginConfig success");
if (data != null || data != undefined) { // if (data != null || data != undefined) {
console.info(TAG + "Entering BeginConfig data is not null || undefined"); // console.info(TAG + "Entering BeginConfig data is not null || undefined");
expect(true).assertTrue(); // expect(true).assertTrue();
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS beginConfig PASSED"); // console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS beginConfig PASSED");
} // }
} else { // } else {
expect().assertFail(); // expect().assertFail();
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS FAILED : " + err.message); // console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS FAILED : " + err.message);
console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS ends here"); // console.info(TAG + "Entering BEGIN_CONFIG_SUCCESS ends here");
} // }
await sleep(1000); // await sleep(1000);
done(); // done();
}) // })
await sleep(1000); // await sleep(1000);
done(); // done();
} // }
}) // })
/** /**
* @tc.number : REMOVE_INPUT_SUCCESS * @tc.number : REMOVE_INPUT_SUCCESS
...@@ -3793,5 +3793,4 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) { ...@@ -3793,5 +3793,4 @@ export default function cameraJSUnitPhotoAsync(surfaceId: any) {
} }
}) })
}) })
} }
\ No newline at end of file
...@@ -4469,4 +4469,4 @@ export default function cameraJSUnitVideoAsync(surfaceId: any) { ...@@ -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.
先完成此消息的编辑!
想要评论请 注册