未验证 提交 4bfba66e 编写于 作者: O openharmony_ci 提交者: Gitee

!4555 删除ts文件上不存在的属性

Merge pull request !4555 from ry/OpenHarmony-3.1-Release
...@@ -176,7 +176,6 @@ describe('ActsBmsQueryAbilityByWant', function () { ...@@ -176,7 +176,6 @@ describe('ActsBmsQueryAbilityByWant', function () {
expect(data.writePermission).assertEqual(""); expect(data.writePermission).assertEqual("");
expect(data.targetAbility).assertEqual(""); expect(data.targetAbility).assertEqual("");
expect(data.metaData.length).assertEqual(0); expect(data.metaData.length).assertEqual(0);
expect(data.metadata.length).assertEqual(0);
expect(data.enabled).assertEqual(true); expect(data.enabled).assertEqual(true);
} }
......
...@@ -52,10 +52,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -52,10 +52,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0); expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone'); expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.mainAbilityName).assertEqual(FIRSTMAINABILITY); expect(hapModuleInfo.mainAbilityName).assertEqual(FIRSTMAINABILITY);
expect(hapModuleInfo.mainElementName).assertEqual(FIRSTMAINABILITY);
expect(hapModuleInfo.abilityInfo.length).assertLarger(0); expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false); expect(hapModuleInfo.installationFree).assertEqual(false);
done(); done();
} }
...@@ -82,10 +79,8 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -82,10 +79,8 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo1.name).assertEqual(BUNDLE_NAME6); expect(hapModuleInfo1.name).assertEqual(BUNDLE_NAME6);
expect(hapModuleInfo.moduleName).assertEqual('entry'); expect(hapModuleInfo.moduleName).assertEqual('entry');
expect(hapModuleInfo.mainAbilityName).assertEqual(FIRSTMAINABILITY); expect(hapModuleInfo.mainAbilityName).assertEqual(FIRSTMAINABILITY);
expect(hapModuleInfo.mainElementName).assertEqual(FIRSTMAINABILITY);
expect(hapModuleInfo1.moduleName).assertEqual('bmsmainabilitysecondscene'); expect(hapModuleInfo1.moduleName).assertEqual('bmsmainabilitysecondscene');
expect(hapModuleInfo1.mainAbilityName).assertEqual(SECONDMAINABILITY); expect(hapModuleInfo1.mainAbilityName).assertEqual(SECONDMAINABILITY);
expect(hapModuleInfo1.mainElementName).assertEqual(SECONDMAINABILITY);
done(); done();
} }
}); });
...@@ -116,10 +111,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -116,10 +111,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0); expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone'); expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.mainAbilityName).assertEqual(""); expect(hapModuleInfo.mainAbilityName).assertEqual("");
expect(hapModuleInfo.mainElementName).assertEqual("");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0); expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false); expect(hapModuleInfo.installationFree).assertEqual(false);
done(); done();
} }
...@@ -151,10 +143,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -151,10 +143,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0); expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone'); expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.third5.AMainAbility"); expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.third5.AMainAbility");
expect(hapModuleInfo.mainElementName).assertEqual("com.example.third5.AMainAbility");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0); expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false); expect(hapModuleInfo.installationFree).assertEqual(false);
done(); done();
} }
...@@ -187,10 +176,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -187,10 +176,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0); expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone'); expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.system1.MainAbility"); expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.system1.MainAbility");
expect(hapModuleInfo.mainElementName).assertEqual("com.example.system1.MainAbility");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0); expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.extensionAbilityInfo.length).assertEqual(0);
expect(hapModuleInfo.metadata.length).assertEqual(0);
expect(hapModuleInfo.installationFree).assertEqual(false); expect(hapModuleInfo.installationFree).assertEqual(false);
} }
done(); done();
...@@ -208,8 +194,6 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -208,8 +194,6 @@ describe('ActsBmsHapModuleTest', function () {
expect(info.reqCapabilities.length).assertEqual(0); expect(info.reqCapabilities.length).assertEqual(0);
expect(info.deviceTypes[0]).assertEqual('phone'); expect(info.deviceTypes[0]).assertEqual('phone');
expect(info.abilityInfo.length).assertLarger(0); expect(info.abilityInfo.length).assertLarger(0);
expect(info.extensionAbilityInfo.length).assertEqual(0);
expect(info.metadata.length).assertEqual(0);
expect(info.installationFree).assertEqual(false); expect(info.installationFree).assertEqual(false);
} }
}) })
\ No newline at end of file
...@@ -74,7 +74,6 @@ describe('ActsBmsJsTest', function () { ...@@ -74,7 +74,6 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.writePermission).assertEqual(""); expect(abilityInfo1.writePermission).assertEqual("");
expect(abilityInfo1.targetAbility).assertEqual(""); expect(abilityInfo1.targetAbility).assertEqual("");
expect(abilityInfo1.metaData.length).assertEqual(0); expect(abilityInfo1.metaData.length).assertEqual(0);
expect(abilityInfo1.metadata.length).assertEqual(0);
expect(abilityInfo1.enabled).assertEqual(true); expect(abilityInfo1.enabled).assertEqual(true);
} }
done(); done();
...@@ -148,7 +147,6 @@ describe('ActsBmsJsTest', function () { ...@@ -148,7 +147,6 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.writePermission).assertEqual(""); expect(abilityInfo1.writePermission).assertEqual("");
expect(abilityInfo1.targetAbility).assertEqual(""); expect(abilityInfo1.targetAbility).assertEqual("");
expect(abilityInfo1.metaData.length).assertEqual(0); expect(abilityInfo1.metaData.length).assertEqual(0);
expect(abilityInfo1.metadata.length).assertEqual(0);
expect(abilityInfo1.enabled).assertEqual(true); expect(abilityInfo1.enabled).assertEqual(true);
} }
done(); done();
...@@ -191,7 +189,6 @@ describe('ActsBmsJsTest', function () { ...@@ -191,7 +189,6 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.writePermission).assertEqual(""); expect(abilityInfo1.writePermission).assertEqual("");
expect(abilityInfo1.targetAbility).assertEqual(""); expect(abilityInfo1.targetAbility).assertEqual("");
expect(abilityInfo1.metaData.length).assertEqual(0); expect(abilityInfo1.metaData.length).assertEqual(0);
expect(abilityInfo1.metadata.length).assertEqual(0);
expect(abilityInfo1.enabled).assertEqual(true); expect(abilityInfo1.enabled).assertEqual(true);
} }
done(); done();
......
...@@ -299,7 +299,6 @@ export default function GetabilityInfo() { ...@@ -299,7 +299,6 @@ export default function GetabilityInfo() {
expect(data.writePermission).assertEqual(""); expect(data.writePermission).assertEqual("");
expect(data.targetAbility).assertEqual(""); expect(data.targetAbility).assertEqual("");
expect(data.metaData.length).assertEqual(0); expect(data.metaData.length).assertEqual(0);
expect(data.metadata.length).assertEqual(0);
checkApplicationInfo_other(data.applicationInfo); checkApplicationInfo_other(data.applicationInfo);
console.log("---checkAbilityInfo_other End--- "); console.log("---checkAbilityInfo_other End--- ");
} }
...@@ -320,7 +319,6 @@ export default function GetabilityInfo() { ...@@ -320,7 +319,6 @@ export default function GetabilityInfo() {
expect(info.process).assertEqual("com.example.third1"); expect(info.process).assertEqual("com.example.third1");
expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"); 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(JSON.stringify(info.metadata)).assertEqual("{}");
expect(info.enabled).assertEqual(true); expect(info.enabled).assertEqual(true);
expect(info.uid).assertLarger(0); expect(info.uid).assertLarger(0);
expect(info.entityType).assertEqual("unspecified"); expect(info.entityType).assertEqual("unspecified");
......
...@@ -243,7 +243,6 @@ export default function applicationBundleJsunit() { ...@@ -243,7 +243,6 @@ export default function applicationBundleJsunit() {
expect(typeof (data[i].supportedModes)).assertEqual('number'); expect(typeof (data[i].supportedModes)).assertEqual('number');
expect(typeof (data[i].process)).assertEqual('string'); expect(typeof (data[i].process)).assertEqual('string');
expect(typeof (data[i].metaData)).assertEqual('object'); expect(typeof (data[i].metaData)).assertEqual('object');
expect(typeof (data[i].metadata)).assertEqual('object');
expect(typeof (data[i].enabled)).assertEqual('boolean'); expect(typeof (data[i].enabled)).assertEqual('boolean');
expect(typeof (data[i].uid)).assertEqual('number'); expect(typeof (data[i].uid)).assertEqual('number');
expect(typeof (data[i].entityType)).assertEqual('string'); expect(typeof (data[i].entityType)).assertEqual('string');
......
...@@ -338,7 +338,6 @@ export default function applicationBundleJsunit() { ...@@ -338,7 +338,6 @@ export default function applicationBundleJsunit() {
expect(typeof (data.process)).assertEqual('string'); expect(typeof (data.process)).assertEqual('string');
expect(typeof (data.entryDir)).assertEqual('string'); expect(typeof (data.entryDir)).assertEqual('string');
expect(typeof (data.metaData)).assertEqual('object'); expect(typeof (data.metaData)).assertEqual('object');
expect(typeof (data.metadata)).assertEqual('object');
expect(typeof (data.enabled)).assertEqual('boolean'); expect(typeof (data.enabled)).assertEqual('boolean');
expect(typeof (data.uid)).assertEqual('number'); expect(typeof (data.uid)).assertEqual('number');
expect(typeof (data.entityType)).assertEqual('string'); expect(typeof (data.entityType)).assertEqual('string');
......
...@@ -128,7 +128,6 @@ describe('ActsBundleManagerTest', function () { ...@@ -128,7 +128,6 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.reqPermissions.length).assertEqual(0); expect(datainfo.reqPermissions.length).assertEqual(0);
expect(datainfo.reqPermissionStates.length).assertEqual(0); expect(datainfo.reqPermissionStates.length).assertEqual(0);
expect(datainfo.reqPermissionDetails.length).assertEqual(0); expect(datainfo.reqPermissionDetails.length).assertEqual(0);
expect(datainfo.extensionAbilityInfo.length).assertEqual(0);
expect(datainfo.appInfo.name).assertEqual(NAME1); expect(datainfo.appInfo.name).assertEqual(NAME1);
expect(datainfo.appInfo.description).assertEqual(APPLICATION_DESCRIPTION); expect(datainfo.appInfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.appInfo.descriptionId >= 0).assertTrue(); expect(datainfo.appInfo.descriptionId >= 0).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册