提交 39eca9a6 编写于 作者: Q qu-xianfei

add new system device_attest

Signed-off-by: Nqu-xianfei <quxianfei@huawei.com>
Change-Id: Idd9cd8cfe4d233eb4d95685ba5aafd6a00750dbe
上级 3ef0ef36
......@@ -67,20 +67,20 @@ export default function deviceAttestInfoTest(context, windowStage, abilityStorag
it('SUB_GRAPHIC_ENUMCOLORSPACE_JSAPI_002', 0, async function (done) {
console.info('test the enum value of attestResultInfo begin');
try{
deviceAttest.getAttestStatus(async (err, attestResultInfo) => {
if(err){
console.info("!!!====>[FormComponent]2:error_1====>" + JSON.stringify(err));
expect(err.code == 202).assertTrue();
}
else{
console.info("!!!====>[FormComponent]2:data====>" + JSON.stringify(attestResultInfo));
expect(attestResultInfo.authResult).assertEqual("");
expect(attestResultInfo.softwareResult).assertEqual("");
expect(attestResultInfo.softwareResultDetail).assertEqual("");
expect(attestResultInfo.ticket).assertEqual("");
}
done();
});
deviceAttest.getAttestStatus(async (err, attestResultInfo) => {
if(err){
console.info("!!!====>[FormComponent]2:error_1====>" + JSON.stringify(err));
expect(err.code == 202).assertTrue();
}
else{
console.info("!!!====>[FormComponent]2:data====>" + JSON.stringify(attestResultInfo));
expect(attestResultInfo.authResult).assertEqual("");
expect(attestResultInfo.softwareResult).assertEqual("");
expect(attestResultInfo.softwareResultDetail).assertEqual("");
expect(attestResultInfo.ticket).assertEqual("");
}
done();
});
} catch(err) {
console.info("!!!====>[FormComponent]2:error_2====>" + JSON.stringify(err));
expect(err.code == 202).assetTrue();
......@@ -96,19 +96,19 @@ export default function deviceAttestInfoTest(context, windowStage, abilityStorag
it('SUB_GRAPHIC_ENUMCOLORSPACE_JSAPI_003', 0, async function (done) {
console.info('test the enum value of attestResultInfo begin');
try{
let attestResultInfo = deviceAttest.getAttestStatusSync();
if(attestResultInfo != null){
console.info("!!!====>[FormComponent]3:data====>" + JSON.stringify(attestResultInfo));
expect(attestResultInfo.authResult).assertEqual("");
expect(attestResultInfo.softwareResult).assertEqual("");
expect(attestResultInfo.softwareResultDetail).assertEqual("");
expect(attestResultInfo.ticket).assertEqual("");
}
else{
console.info("!!!====>[FormComponent]3:error_1====>");
expect().assetTrue();
}
done();
let attestResultInfo = deviceAttest.getAttestStatusSync();
if(attestResultInfo != null){
console.info("!!!====>[FormComponent]3:data====>" + JSON.stringify(attestResultInfo));
expect(attestResultInfo.authResult).assertEqual("");
expect(attestResultInfo.softwareResult).assertEqual("");
expect(attestResultInfo.softwareResultDetail).assertEqual("");
expect(attestResultInfo.ticket).assertEqual("");
}
else{
console.info("!!!====>[FormComponent]3:error_1====>");
expect().assetTrue();
}
done();
} catch(err) {
console.info("!!!====>[FormComponent]3:error_2====>" + JSON.stringify(err));
expect(err.code).assertEqual(202);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册