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