提交 e27494db 编写于 作者: 耿文广

新增校验fingerprint字段的XTS用例

Signed-off-by: N耿文广 <gengwenguang@huawei.com>
上级 fb54873d
......@@ -399,7 +399,7 @@ export default function applicationBundleJsunit() {
Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT).then((data) => {
expect(data.fingerprint).assertEqual(TEST_DEMO);
}).catch((error) => {
expect(error).assertEqual(1);
expect(data).assertFail();
});
done()
});
......@@ -413,9 +413,7 @@ export default function applicationBundleJsunit() {
Bundle.getApplicationInfo(BUNDLE_NAME,
Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT, (error, data) => {
expect(data.fingerprint).assertEqual(TEST_DEMO);
if(error){
expect(err).assertEqual(1);
}
expect(err).assertEqual(1);
done();
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册