未验证 提交 63806e2f 编写于 作者: O openharmony_ci 提交者: Gitee

!3222 修改getAbilityInfo用例断言拼写错误

Merge pull request !3222 from ry/OpenHarmony-3.1-Release
......@@ -298,15 +298,15 @@ export default function GetabilityInfo() {
expect(data.descriptionId).assertLarger(0);
expect(data.formEnabled).assertEqual(false);
expect(data.iconId).assertLarger(0);
except(data.labelId).assertLarger(0);
expect(data.labelId).assertLarger(0);
expect(data.subType).assertEqual(0);
except(data.enabled).assertEqual(true);
expect(data.enabled).assertEqual(true);
expect(data.readPermission).assertEqual("");
expect(data.writePermission).assertEqual("");
expect(data.targetAbility).assertEqual("");
expect(data.theme).assertEqual("");
expect(data.metaData).assertEqual([]);
expect(data.metadata).assertEqual([]);
expect(data.metaData.length).assertEqual(0);
expect(data.metadata.length).assertEqual(0);
checkApplicationInfo_other(data.applicationInfo);
console.log("---checkAbilityInfo_other End--- ");
}
......@@ -321,15 +321,15 @@ export default function GetabilityInfo() {
expect(info.iconId > 0).assertTrue();
expect(info.label).assertEqual("$string:app_name");
expect(info.labelId > 0).assertTrue();
expect(info.systemApp).assertEqual(true);
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.ohos.acecollaboration/com.ohos.acecollaboration");
expect(info.systemApp).assertEqual(false);
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry");
expect(info.supportedModes).assertEqual(0);
expect(info.process).assertEqual("");
expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.ohos.acecollaboration/com.ohos.acecollaboration");
expect(info.metaData).expect({});
expect(info.metadata).expect({});
expect(info.enabled).expect(true);
expect(info.flags).expect(0);
expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry");
expect(JSON.stringify(info.metaData)).assertEqual("{}");
expect(JSON.stringify(info.metadata)).assertEqual("{}");
expect(info.enabled).assertEqual(true);
expect(info.flags).assertEqual(0);
expect(info.uid).assertLarger(0);
expect(info.entityType).assertEqual("unspecified");
expect(info.removable).assertEqual(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册