diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets index 3f6fd39ff1c655f96f45c56c9ec1132b149e0908..7888356180ee2306b133d5d288af9d8106d2cd20 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets @@ -239,10 +239,10 @@ export default function actsBmsJsUnPermissionTest() { expect(info.label).assertEqual("$string:entry_MainAbility"); expect(info.labelId > 0).assertTrue(); expect(info.systemApp).assertEqual(false); - expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"); + expect(info.entryDir).assertEqual(""); expect(info.supportedModes).assertEqual(0); expect(info.process).assertEqual("com.example.actsbmsetsunpermissiontest"); - expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"); + expect(info.moduleSourceDirs.length).assertEqual(0); expect(info.enabled).assertEqual(true); expect(info.uid).assertLarger(0); expect(info.entityType).assertEqual("unspecified"); diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets index e7e0bc85a9640c9e18c3299818c4ab45c1becd2b..405303d1feb13ddce27c99136d9d2ab3b876e46b 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets @@ -264,13 +264,13 @@ export default function GetabilityInfo() { expect(info.labelId > 0).assertTrue(); expect(info.systemApp).assertEqual(false); expect(typeof (info.entryDir)).assertEqual("string"); - expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag"); + expect(info.entryDir).assertEqual(""); expect(typeof (info.supportedModes)).assertEqual("number"); expect(info.supportedModes).assertEqual(0); expect(typeof (info.process)).assertEqual("string"); expect(info.process).assertEqual("com.open.harmony.packagemag"); expect(Array.isArray(info.moduleSourceDirs)).assertEqual(true); - expect(info.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag"); + expect(info.moduleSourceDirs.length).assertEqual(0); expect(Array.isArray(info.permissions)).assertEqual(true); } @@ -314,10 +314,10 @@ export default function GetabilityInfo() { expect(info.label).assertEqual("$string:app_name"); expect(info.labelId > 0).assertTrue(); expect(info.systemApp).assertEqual(false); - expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"); + expect(info.entryDir).assertEqual(""); expect(info.supportedModes).assertEqual(0); 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.length).assertEqual(0); expect(JSON.stringify(info.metaData)).assertEqual("{}"); expect(info.enabled).assertEqual(true); expect(info.uid).assertLarger(0); diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets index f9bd497852e83b749ec58e5461a686a67658c874..a72f4fd8742b6ca8f4ee7935b829500b17f95c6d 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets @@ -375,16 +375,13 @@ export default function getAllApplicationBundleTest() { expect(data[i].systemApp).assertEqual(false); expect(data[i].supportedModes).assertEqual(0); expect(data[i].process).assertEqual('com.open.harmony.packagemag'); - expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' + - '/com.open.harmony.packagemag'); + expect(data[i].entryDir).assertEqual(''); expect(data[i].enabled).assertEqual(true); expect(data[i].entityType).assertEqual('unspecified'); expect(data[i].removable).assertEqual(true); expect(data[i].moduleInfos[0].moduleName).assertEqual('entry'); - expect(data[i].moduleInfos[0].moduleSourceDir).assertEqual('/data/app/el1/bundle/public/' + - 'com.open.harmony.packagemag/com.open.harmony.packagemag'); - expect(data[i].moduleSourceDirs[0]).assertEqual('/data/app/el1/bundle/public/' + - 'com.open.harmony.packagemag/com.open.harmony.packagemag'); + expect(data[i].moduleInfos[0].moduleSourceDir).assertEqual(''); + expect(data[i].moduleSourceDirs.length).assertEqual(0); } } } @@ -402,14 +399,12 @@ export default function getAllApplicationBundleTest() { expect(data.systemApp).assertFalse(); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_OTHER); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.entryDir).assertEqual(''); expect(data.permissions.length).assertEqual(0); - expect(data.moduleSourceDirs.length).assertEqual(1); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + - BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(JSON.stringify(data.metaData)).assertEqual("{}"); expect(data.enabled).assertTrue(); expect(data.uid).assertLarger(0); @@ -431,14 +426,12 @@ export default function getAllApplicationBundleTest() { expect(data.systemApp).assertFalse(); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_OTHER); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.entryDir).assertEqual(''); expect(data.permissions.length).assertEqual(0); - expect(data.moduleSourceDirs.length).assertEqual(1); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + - BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(data.enabled).assertTrue(); expect(data.uid).assertLarger(0); expect(data.entityType).assertEqual('unspecified'); diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets index 108a1e2bd7972908b586f6fa6d3c2b21f175f130..c9b0aeca551aae6e945e30b57b3c19e585e89003 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets @@ -446,13 +446,13 @@ export default function applicationBundleJsunit() { expect(data.systemApp).assertEqual(false); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_NAME); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); + expect(data.entryDir).assertEqual(''); expect(data.enabled).assertEqual(true); expect(data.entityType).assertEqual('unspecified'); expect(data.removable).assertEqual(true); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.permissions[0]).assertEqual("ohos.permission.GET_BUNDLE_INFO"); expect(data.permissions[1]).assertEqual("ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"); expect(data.permissions[2]).assertEqual("ohos.permission.USE_BLUETOOTH"); @@ -472,14 +472,12 @@ export default function applicationBundleJsunit() { expect(data.systemApp).assertFalse(); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_NAME); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); + expect(data.entryDir).assertEqual(''); expect(data.permissions.length).assertEqual(0); - expect(data.moduleSourceDirs.length).assertEqual(1); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + - BUNDLE_NAME + '/' + BUNDLE_NAME); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(JSON.stringify(data.metaData)).assertEqual("{}"); expect(data.enabled).assertTrue(); expect(data.uid).assertLarger(0); @@ -503,14 +501,12 @@ export default function applicationBundleJsunit() { expect(data.systemApp).assertFalse(); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_OTHER); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.entryDir).assertEqual(''); expect(data.permissions.length).assertEqual(0); - expect(data.moduleSourceDirs.length).assertEqual(1); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + - BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(JSON.stringify(data.metaData)).assertEqual("{}"); expect(data.enabled).assertTrue(); expect(data.uid).assertLarger(0); @@ -532,14 +528,12 @@ export default function applicationBundleJsunit() { expect(data.systemApp).assertFalse(); expect(data.supportedModes).assertEqual(0); expect(data.process).assertEqual(BUNDLE_OTHER); - expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.entryDir).assertEqual(''); expect(data.permissions.length).assertEqual(0); - expect(data.moduleSourceDirs.length).assertEqual(1); - expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleSourceDirs.length).assertEqual(0); expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos[0].moduleName).assertEqual('entry'); - expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' + - BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry'); + expect(data.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(data.enabled).assertTrue(); expect(data.uid).assertLarger(0); expect(data.entityType).assertEqual('unspecified'); diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets index 03100b9a94cadfe7f5936cbc9e639942852c7327..ff85a999bb65168077850b74eff56fc424ae2122 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets @@ -103,7 +103,6 @@ export default function getBundleInfoForSelf() { expect(data.appInfo.icon).assertEqual("$media:icon"); expect(data.appInfo.iconId).assertLarger(0); expect(data.appInfo.process).assertEqual(BUNDLE_NAME); - expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR); expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test"); expect(data.appInfo.removable).assertTrue(0); expect(data.appInfo.accessTokenId).assertLarger(0); @@ -156,7 +155,6 @@ export default function getBundleInfoForSelf() { expect(data.appInfo.icon).assertEqual("$media:icon"); expect(data.appInfo.iconId).assertLarger(0); expect(data.appInfo.process).assertEqual(BUNDLE_NAME); - expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR); expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test"); expect(data.appInfo.removable).assertTrue(0); expect(data.appInfo.accessTokenId).assertLarger(0); @@ -211,7 +209,6 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet"); expect(data.hapModulesInfo[0].installationFree).assertFalse(); expect(data.hapModulesInfo[0].hashValue).assertEqual(""); - expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR); expect(data.reqPermissionDetails.length).assertEqual(0); expect(data.permissionGrantStates.length).assertEqual(0); expect(data.signatureInfo).assertEqual(null); @@ -250,7 +247,6 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet"); expect(data.hapModulesInfo[0].installationFree).assertFalse(); expect(data.hapModulesInfo[0].hashValue).assertEqual(""); - expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR); expect(data.reqPermissionDetails.length).assertEqual(0); expect(data.permissionGrantStates.length).assertEqual(0); expect(data.signatureInfo).assertEqual(null); @@ -1021,7 +1017,6 @@ export default function getBundleInfoForSelf() { expect(data.appInfo.icon).assertEqual("$media:icon"); expect(data.appInfo.iconId).assertLarger(0); expect(data.appInfo.process).assertEqual(BUNDLE_NAME); - expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR); expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test"); expect(data.appInfo.removable).assertTrue(0); expect(data.appInfo.accessTokenId).assertLarger(0); @@ -1059,7 +1054,6 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet"); expect(data.hapModulesInfo[0].installationFree).assertFalse(); expect(data.hapModulesInfo[0].hashValue).assertEqual(""); - expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR); console.info("checkCommonHapModuleInfo end"); } diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js index 14261daabd2d57026f55857417e31571b5f99bf3..03078ef3adfd0f5f9bd20cd84453b500d52575db 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js @@ -96,7 +96,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.entryInstallationFree).assertEqual(false); for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(datainfo.appInfo.enabled).assertEqual(true); done(); @@ -160,7 +160,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.entryInstallationFree).assertEqual(false); for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(datainfo.appInfo.enabled).assertEqual(true); } @@ -251,7 +251,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.appInfo.supportedModes).assertEqual(0); for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(datainfo.appInfo.enabled).assertEqual(true); done(); @@ -295,7 +295,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.appInfo.supportedModes).assertEqual(0); for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(datainfo.appInfo.enabled).assertEqual(true); done(); @@ -427,7 +427,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.appInfo.supportedModes).assertEqual(0); for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(datainfo.appInfo.enabled).assertEqual(true); done(); @@ -508,7 +508,7 @@ describe('ActsBundleManagerTest', function () { expect(dataInfo.entryInstallationFree).assertEqual(false); for (let j = 0; j < dataInfo.appInfo.moduleInfos.length; j++) { expect(dataInfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(dataInfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(dataInfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } expect(dataInfo.appInfo.enabled).assertEqual(true); console.info("testGetBundleInfoCurrentUserIdPromise end --------"); @@ -557,7 +557,7 @@ describe('ActsBundleManagerTest', function () { expect(dataInfo.entryInstallationFree).assertEqual(false); for (let j = 0; j < dataInfo.appInfo.moduleInfos.length; j++) { expect(dataInfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(dataInfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(dataInfo.appInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } console.info("testGetBundleInfoCurrentUserIdCallback end --------"); done(); @@ -626,12 +626,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo[i].icon.length).assertLarger(0); expect(datainfo[i].label.length).assertLarger(0); } - expect(datainfo[i].moduleSourceDirs.length).assertLarger(0); + expect(datainfo[i].moduleSourceDirs.length).assertEqual(0); expect(datainfo[i].moduleInfos.length).assertLarger(0); expect(datainfo[i].supportedModes).assertEqual(0); for (let j = 0; j < datainfo[i].moduleInfos.length; j++) { expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0); - expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertEqual(0); } } @@ -648,12 +648,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.length).assertLarger(0); for (let i = 0; i < datainfo.length; i++) { expect(datainfo[i].name.length).assertLarger(0); - expect(datainfo[i].moduleSourceDirs.length).assertLarger(0); + expect(datainfo[i].moduleSourceDirs.length).assertEqual(0); expect(datainfo[i].moduleInfos.length).assertLarger(0); expect(datainfo[i].supportedModes).assertEqual(0); for (let j = 0; j < datainfo[i].moduleInfos.length; j++) { expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0); - expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertEqual(0); } } done(); @@ -695,7 +695,7 @@ describe('ActsBundleManagerTest', function () { userId).then(datainfo => { expect(typeof datainfo).assertEqual(OBJECT); console.info("getApplicationInfo success:" + JSON.stringify(datainfo)); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertLarger(0); expect(datainfo.name).assertEqual(NAME1); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); @@ -711,10 +711,10 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.metaData.entry[0].name).assertEqual("metaDataName"); expect(datainfo.metaData.entry[0].value).assertEqual("metaDataValue"); expect(datainfo.metaData.entry[0].extra).assertEqual("$string:app_name"); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); for (let j = 0; j < datainfo.moduleInfos.length; j++) { expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertEqual(0); } done(); }).catch(err => { @@ -741,7 +741,7 @@ describe('ActsBundleManagerTest', function () { } expect(typeof datainfo).assertEqual(OBJECT); console.info("testGetApplicationInfoMetaDataCallback success:" + JSON.stringify(datainfo)); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertLarger(0); expect(datainfo.name).assertEqual(NAME1); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); @@ -757,10 +757,10 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.metaData.entry[0].name).assertEqual("metaDataName"); expect(datainfo.metaData.entry[0].value).assertEqual("metaDataValue"); expect(datainfo.metaData.entry[0].extra).assertEqual("$string:app_name"); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); for (let j = 0; j < datainfo.moduleInfos.length; j++) { expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertEqual(0); } done(); }) @@ -780,7 +780,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.description.length).assertLarger(0); expect(datainfo.icon.length).assertLarger(0); expect(datainfo.label.length).assertLarger(0); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertLarger(0); expect(datainfo.name).assertEqual(NAME2); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); @@ -793,12 +793,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.process).assertEqual(NAME2); expect(datainfo.enabled).assertEqual(true); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertEqual(2); expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry"); expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature"); for (let j = 0; j < datainfo.moduleInfos.length; j++) { - expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertEqual(0); } done(); }) @@ -817,7 +817,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.description.length).assertLarger(0); expect(datainfo.icon.length).assertLarger(0); expect(datainfo.label.length).assertLarger(0); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertLarger(0); expect(datainfo.name).assertEqual(NAME2); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); @@ -830,12 +830,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.process).assertEqual(NAME2); expect(datainfo.enabled).assertEqual(true); - expect(datainfo.moduleSourceDirs.length).assertLarger(0); + expect(datainfo.moduleSourceDirs.length).assertEqual(0); expect(datainfo.moduleInfos.length).assertEqual(2); expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry"); expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature"); for (let j = 0; j < datainfo.moduleInfos.length; j++) { - expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertEqual(0); } done(); }) @@ -1042,7 +1042,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.enabled).assertEqual(true); for (let j = 0; j < datainfo.moduleInfos.length; j++) { expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } done(); }).catch(error => { @@ -1080,7 +1080,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.enabled).assertEqual(true); for (let j = 0; j < datainfo.moduleInfos.length; j++) { expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } done(); }) @@ -1150,12 +1150,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo[i].icon.length).assertLarger(0); expect(datainfo[i].label.length).assertLarger(0); } - expect(datainfo[i].moduleSourceDirs.length).assertLarger(0); + expect(datainfo[i].moduleSourceDirs.length).assertEqual(0); expect(datainfo[i].moduleInfos.length).assertLarger(0); expect(datainfo[i].supportedModes).assertEqual(0); for (let j = 0; j < datainfo[i].moduleInfos.length; j++) { expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0); - expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertEqual(0); } } done(); @@ -1177,12 +1177,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo[i].icon.length).assertLarger(0); expect(datainfo[i].label.length).assertLarger(0); } - expect(datainfo[i].moduleSourceDirs.length).assertLarger(0); + expect(datainfo[i].moduleSourceDirs.length).assertEqual(0); expect(datainfo[i].moduleInfos.length).assertLarger(0); expect(datainfo[i].supportedModes).assertEqual(0); for (let j = 0; j < datainfo[i].moduleInfos.length; j++) { expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0); - expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertEqual(0); } } done(); @@ -1204,12 +1204,12 @@ describe('ActsBundleManagerTest', function () { expect(datainfo[i].icon.length).assertLarger(0); expect(datainfo[i].label.length).assertLarger(0); } - expect(datainfo[i].moduleSourceDirs.length).assertLarger(0); + expect(datainfo[i].moduleSourceDirs.length).assertEqual(0); expect(datainfo[i].moduleInfos.length).assertLarger(0); expect(datainfo[i].supportedModes).assertEqual(0); for (let j = 0; j < datainfo[i].moduleInfos.length; j++) { expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0); - expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0); + expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertEqual(0); } } done(); @@ -1421,7 +1421,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.metaData.length).assertLarger(0); for (let j = 0; j < datainfo.applicationInfo.moduleInfos.length; j++) { expect(datainfo.applicationInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.applicationInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.applicationInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } } done(); @@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.metaData.length).assertLarger(0); for (let j = 0; j < datainfo.applicationInfo.moduleInfos.length; j++) { expect(datainfo.applicationInfo.moduleInfos[j].moduleName).assertEqual("entry"); - expect(datainfo.applicationInfo.moduleInfos[j].moduleSourceDir).assertEqual(DIR1); + expect(datainfo.applicationInfo.moduleInfos[j].moduleSourceDir).assertEqual(''); } } done(); @@ -1521,9 +1521,9 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry"); - expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3); + expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("feature"); - expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2); + expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(''); } done(); }) @@ -1562,9 +1562,9 @@ describe('ActsBundleManagerTest', function () { expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry"); - expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3); + expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(''); expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("feature"); - expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2); + expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(''); } done(); })