提交 a8d44ebb 编写于 作者: I inter515

签名文件app-feature修改为hos_normal_app和设备类型改为default

Signed-off-by: Ninter515 <ry.renyi@huawei.com>
上级 822b4996
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmsaccesstokentest", "package": "com.example.actsbmsaccesstokentest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -485,7 +485,7 @@ export default function actsBmsJsModuleNameTest() { ...@@ -485,7 +485,7 @@ export default function actsBmsJsModuleNameTest() {
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
expect(typeof (data.icon)).assertEqual("string"); expect(typeof (data.icon)).assertEqual("string");
expect(data.isVisible).assertEqual(false); expect(data.isVisible).assertEqual(false);
expect(data.deviceTypes[0]).assertEqual("phone"); expect(data.deviceTypes[0]).assertEqual("default");
expect(typeof (data.process)).assertEqual("string"); expect(typeof (data.process)).assertEqual("string");
expect(data.process).assertEqual("com.example.bmsmodulename"); expect(data.process).assertEqual("com.example.bmsmodulename");
expect(typeof (data.uri)).assertEqual("string"); expect(typeof (data.uri)).assertEqual("string");
...@@ -513,7 +513,7 @@ export default function actsBmsJsModuleNameTest() { ...@@ -513,7 +513,7 @@ export default function actsBmsJsModuleNameTest() {
expect(info.label).assertEqual("$string:app_name"); expect(info.label).assertEqual("$string:app_name");
expect(typeof (info.labelId)).assertEqual("number"); expect(typeof (info.labelId)).assertEqual("number");
expect(info.labelId > 0).assertTrue(); expect(info.labelId > 0).assertTrue();
expect(info.systemApp).assertEqual(true); expect(info.systemApp).assertEqual(false);
expect(typeof (info.entryDir)).assertEqual("string"); expect(typeof (info.entryDir)).assertEqual("string");
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.bmsmodulename/com.example.bmsmodulenamedentry"); expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.bmsmodulename/com.example.bmsmodulenamedentry");
expect(typeof (info.process)).assertEqual("string"); expect(typeof (info.process)).assertEqual("string");
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -237,7 +237,7 @@ export default function actsBmsJsUnPermissionTest() { ...@@ -237,7 +237,7 @@ export default function actsBmsJsUnPermissionTest() {
expect(data.description).assertEqual("$string:description_mainability"); expect(data.description).assertEqual("$string:description_mainability");
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
expect(data.isVisible).assertEqual(true); expect(data.isVisible).assertEqual(true);
expect(data.deviceTypes[0]).assertEqual("phone"); expect(data.deviceTypes[0]).assertEqual("default");
expect(data.process).assertEqual("com.example.actsbmsetsunpermissiontest"); expect(data.process).assertEqual("com.example.actsbmsetsunpermissiontest");
expect(data.uri).assertEqual(""); expect(data.uri).assertEqual("");
expect(data.moduleName).assertEqual("entry"); expect(data.moduleName).assertEqual("entry");
...@@ -275,7 +275,7 @@ export default function actsBmsJsUnPermissionTest() { ...@@ -275,7 +275,7 @@ export default function actsBmsJsUnPermissionTest() {
expect(info.labelId > 0).assertTrue(); expect(info.labelId > 0).assertTrue();
expect(info.labelIndex > 0).assertTrue(); expect(info.labelIndex > 0).assertTrue();
expect(info.labelIndex).assertEqual(info.labelId); expect(info.labelIndex).assertEqual(info.labelId);
expect(info.systemApp).assertEqual(true); expect(info.systemApp).assertEqual(false);
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"); expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest");
expect(info.supportedModes).assertEqual(0); expect(info.supportedModes).assertEqual(0);
expect(info.process).assertEqual("com.example.actsbmsetsunpermissiontest"); expect(info.process).assertEqual("com.example.actsbmsetsunpermissiontest");
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmsgetinfostest", "package": "com.example.actsbmsgetinfostest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -158,7 +158,7 @@ describe('ActsBmsQueryAbilityByWant', function () { ...@@ -158,7 +158,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
expect(data.isVisible).assertEqual(false); expect(data.isVisible).assertEqual(false);
expect(data.permissions.length).assertEqual(0); expect(data.permissions.length).assertEqual(0);
expect(data.deviceCapabilities.length).assertEqual(0); expect(data.deviceCapabilities.length).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual('phone'); expect(data.deviceTypes[0]).assertEqual('default');
expect(data.process).assertEqual(SYSTEM_NAME); expect(data.process).assertEqual(SYSTEM_NAME);
expect(data.uri).assertEqual(''); expect(data.uri).assertEqual('');
expect(data.bundleName).assertEqual(SYSTEM_NAME); expect(data.bundleName).assertEqual(SYSTEM_NAME);
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmshapmoduletest", "package": "com.example.actsbmshapmoduletest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -27,7 +27,7 @@ const ICON = '$media:icon'; ...@@ -27,7 +27,7 @@ const ICON = '$media:icon';
const ICON_ID = 16777218; const ICON_ID = 16777218;
const LABEL = '$string:app_name'; const LABEL = '$string:app_name';
const LABEL_ID = 16777216; const LABEL_ID = 16777216;
const DEVICE_TYPES = 'phone'; const DEVICE_TYPES = 'default';
const FIRST_SCENE_HAP_NAME = 'com.example.bmsmainabilityfirstscene.MyApplication'; const FIRST_SCENE_HAP_NAME = 'com.example.bmsmainabilityfirstscene.MyApplication';
const SECOND_SCENE_HAP_NAME = 'com.example.bmsmainabilitysecondscene.MyApplication'; const SECOND_SCENE_HAP_NAME = 'com.example.bmsmainabilitysecondscene.MyApplication';
const THIRD_TWO_HAP_NAME = 'com.example.third2.MyApplication'; const THIRD_TWO_HAP_NAME = 'com.example.third2.MyApplication';
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmsjstest", "package": "com.example.actsbmsjstest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -31,7 +31,7 @@ describe('ActsBmsHasInstalldTest', function () { ...@@ -31,7 +31,7 @@ describe('ActsBmsHasInstalldTest', function () {
it('hasInstalled_0100', 0, async function (done) { it('hasInstalled_0100', 0, async function (done) {
let flag = 0; let flag = 0;
pkg.hasInstalled({ pkg.hasInstalled({
bundleName: 'com.ohos.launcher', bundleName: 'com.example.third2',
success: function success(data) { success: function success(data) {
console.info('hasInstalled success function in'); console.info('hasInstalled success function in');
flag += 1; flag += 1;
......
...@@ -54,7 +54,7 @@ describe('ActsBmsJsTest', function () { ...@@ -54,7 +54,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon"); expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true); expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0); expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone'); expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME2); expect(abilityInfo1.process).assertEqual(BUNDLE_NAME2);
expect(abilityInfo1.uri).assertEqual(""); expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME2); expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME2);
...@@ -130,7 +130,7 @@ describe('ActsBmsJsTest', function () { ...@@ -130,7 +130,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon"); expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true); expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0); expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone'); expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME4); expect(abilityInfo1.process).assertEqual(BUNDLE_NAME4);
expect(abilityInfo1.uri).assertEqual(""); expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME4); expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME4);
...@@ -173,7 +173,7 @@ describe('ActsBmsJsTest', function () { ...@@ -173,7 +173,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon"); expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true); expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0); expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone'); expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME5); expect(abilityInfo1.process).assertEqual(BUNDLE_NAME5);
expect(abilityInfo1.uri).assertEqual(""); expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME5); expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME5);
...@@ -205,7 +205,7 @@ describe('ActsBmsJsTest', function () { ...@@ -205,7 +205,7 @@ describe('ActsBmsJsTest', function () {
expect(info.icon).assertEqual("$media:icon"); expect(info.icon).assertEqual("$media:icon");
expect(info.isVisible).assertEqual(true); expect(info.isVisible).assertEqual(true);
expect(info.permissions.length).assertEqual(0); expect(info.permissions.length).assertEqual(0);
expect(info.deviceTypes[0]).assertEqual('phone'); expect(info.deviceTypes[0]).assertEqual('default');
expect(info.process).assertEqual(BUNDLE_NAME3); expect(info.process).assertEqual(BUNDLE_NAME3);
expect(info.uri).assertEqual(""); expect(info.uri).assertEqual("");
expect(info.bundleName).assertEqual(BUNDLE_NAME3); expect(info.bundleName).assertEqual(BUNDLE_NAME3);
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmsjsunpermissiontest", "package": "com.example.actsbmsjsunpermissiontest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbmsmetadatatest", "package": "com.example.actsbmsmetadatatest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"phone" "default"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"srcPath": "", "srcPath": "",
"mainAbility": "com.open.harmony.packagemag.MainAbility", "mainAbility": "com.open.harmony.packagemag.MainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"reqPermissions": [ "reqPermissions": [
{ {
......
...@@ -230,7 +230,7 @@ export default function GetabilityInfo() { ...@@ -230,7 +230,7 @@ export default function GetabilityInfo() {
expect(data.isVisible).assertEqual(true); expect(data.isVisible).assertEqual(true);
expect(Array.isArray(data.permissions)).assertEqual(true); expect(Array.isArray(data.permissions)).assertEqual(true);
expect(Array.isArray(data.deviceCapabilities)).assertEqual(true); expect(Array.isArray(data.deviceCapabilities)).assertEqual(true);
expect(data.deviceTypes[0]).assertEqual("phone"); expect(data.deviceTypes[0]).assertEqual("default");
expect(typeof (data.process)).assertEqual("string"); expect(typeof (data.process)).assertEqual("string");
expect(data.process).assertEqual("com.open.harmony.packagemag"); expect(data.process).assertEqual("com.open.harmony.packagemag");
expect(typeof (data.uri)).assertEqual("string"); expect(typeof (data.uri)).assertEqual("string");
...@@ -268,7 +268,7 @@ export default function GetabilityInfo() { ...@@ -268,7 +268,7 @@ export default function GetabilityInfo() {
expect(typeof (info.labelIndex)).assertEqual("number"); expect(typeof (info.labelIndex)).assertEqual("number");
expect(info.labelIndex > 0).assertTrue(); expect(info.labelIndex > 0).assertTrue();
expect(info.labelIndex).assertEqual(info.labelId); expect(info.labelIndex).assertEqual(info.labelId);
expect(info.systemApp).assertEqual(true); expect(info.systemApp).assertEqual(false);
expect(typeof (info.entryDir)).assertEqual("string"); 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("/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag");
expect(typeof (info.supportedModes)).assertEqual("number"); expect(typeof (info.supportedModes)).assertEqual("number");
...@@ -287,7 +287,7 @@ export default function GetabilityInfo() { ...@@ -287,7 +287,7 @@ export default function GetabilityInfo() {
expect(data.description).assertEqual("$string:mainability_description"); expect(data.description).assertEqual("$string:mainability_description");
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
expect(data.isVisible).assertEqual(true); expect(data.isVisible).assertEqual(true);
expect(data.deviceTypes[0]).assertEqual("phone"); expect(data.deviceTypes[0]).assertEqual("default");
expect(data.process).assertEqual("com.example.third1"); expect(data.process).assertEqual("com.example.third1");
expect(data.uri).assertEqual(""); expect(data.uri).assertEqual("");
expect(data.moduleName).assertEqual("entry"); expect(data.moduleName).assertEqual("entry");
......
...@@ -1017,7 +1017,7 @@ export default function QueryExtensionAbilityInfos() { ...@@ -1017,7 +1017,7 @@ export default function QueryExtensionAbilityInfos() {
expect(data[0].applicationInfo.labelId).assertLarger(0); expect(data[0].applicationInfo.labelId).assertLarger(0);
expect(data[0].applicationInfo.labelIndex).assertLarger(0); expect(data[0].applicationInfo.labelIndex).assertLarger(0);
expect(data[0].applicationInfo.labelIndex).assertEqual(data[0].applicationInfo.labelId); expect(data[0].applicationInfo.labelIndex).assertEqual(data[0].applicationInfo.labelId);
expect(data[0].applicationInfo.systemApp).assertTrue(); expect(data[0].applicationInfo.systemApp).assertFalse();
expect(data[0].applicationInfo.supportedModes).assertEqual(0); expect(data[0].applicationInfo.supportedModes).assertEqual(0);
expect(data[0].applicationInfo.process).assertEqual("ohos.acts.bundle.stage"); expect(data[0].applicationInfo.process).assertEqual("ohos.acts.bundle.stage");
expect(data[0].applicationInfo.entryDir).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage/phone"); expect(data[0].applicationInfo.entryDir).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage/phone");
......
...@@ -343,7 +343,7 @@ export default function getAllApplicationBundleTest() { ...@@ -343,7 +343,7 @@ export default function getAllApplicationBundleTest() {
if (data[i].uid !== 0) { if (data[i].uid !== 0) {
expect(data[i].uid > 0).assertEqual(true); expect(data[i].uid > 0).assertEqual(true);
}; };
expect(data[i].systemApp).assertEqual(true); expect(data[i].systemApp).assertEqual(false);
expect(data[i].supportedModes).assertEqual(0); expect(data[i].supportedModes).assertEqual(0);
expect(data[i].process).assertEqual('com.open.harmony.packagemag'); expect(data[i].process).assertEqual('com.open.harmony.packagemag');
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' + expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
......
...@@ -469,7 +469,7 @@ export default function applicationBundleJsunit() { ...@@ -469,7 +469,7 @@ export default function applicationBundleJsunit() {
expect(data.labelId > 0).assertEqual(true); expect(data.labelId > 0).assertEqual(true);
expect(data.labelIndex > 0).assertEqual(true); expect(data.labelIndex > 0).assertEqual(true);
expect(data.labelIndex).assertEqual(data.labelId); expect(data.labelIndex).assertEqual(data.labelId);
expect(data.systemApp).assertEqual(true); expect(data.systemApp).assertEqual(false);
expect(data.supportedModes).assertEqual(0); expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_NAME); expect(data.process).assertEqual(BUNDLE_NAME);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
...@@ -499,7 +499,7 @@ export default function applicationBundleJsunit() { ...@@ -499,7 +499,7 @@ export default function applicationBundleJsunit() {
expect(data.labelId).assertLarger(0); expect(data.labelId).assertLarger(0);
expect(data.labelIndex).assertLarger(0); expect(data.labelIndex).assertLarger(0);
expect(data.labelIndex).assertEqual(data.labelId); expect(data.labelIndex).assertEqual(data.labelId);
expect(data.systemApp).assertTrue(); expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0); expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_NAME); expect(data.process).assertEqual(BUNDLE_NAME);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME); expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.actsbundlemanagertest", "package": "com.example.actsbundlemanagertest",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -73,7 +73,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -73,7 +73,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.installTime).assertLarger(0); expect(datainfo.installTime).assertLarger(0);
expect(datainfo.updateTime).assertLarger(0); expect(datainfo.updateTime).assertLarger(0);
...@@ -137,7 +137,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -137,7 +137,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.installTime).assertLarger(0); expect(datainfo.installTime).assertLarger(0);
expect(datainfo.updateTime).assertLarger(0); expect(datainfo.updateTime).assertLarger(0);
...@@ -185,7 +185,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -185,7 +185,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
done(); done();
}) })
...@@ -210,7 +210,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -210,7 +210,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
done(); done();
} }
}) })
...@@ -248,7 +248,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -248,7 +248,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) {
expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry");
...@@ -293,7 +293,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -293,7 +293,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) {
expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry");
...@@ -398,7 +398,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -398,7 +398,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.appInfo.enabled).assertEqual(true); expect(datainfo.appInfo.enabled).assertEqual(true);
done(); done();
...@@ -425,7 +425,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -425,7 +425,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue(); expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name"); expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue(); expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) {
expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry"); expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry");
...@@ -460,7 +460,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -460,7 +460,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.versionName.length).assertLarger(0); expect(datainfo.versionName.length).assertLarger(0);
expect(datainfo.uid).assertLarger(2099); expect(datainfo.uid).assertLarger(2099);
expect(datainfo.appInfo.name).assertEqual(NAME1); expect(datainfo.appInfo.name).assertEqual(NAME1);
expect(datainfo.appInfo.systemApp).assertEqual(true); expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0); expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.appInfo.moduleInfos.length).assertLarger(0); expect(datainfo.appInfo.moduleInfos.length).assertLarger(0);
expect(datainfo.appInfo.enabled).assertEqual(true); expect(datainfo.appInfo.enabled).assertEqual(true);
...@@ -492,7 +492,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -492,7 +492,7 @@ describe('ActsBundleManagerTest', function () {
expect(dataInfo.appInfo.iconId >= 0).assertTrue(); expect(dataInfo.appInfo.iconId >= 0).assertTrue();
expect(dataInfo.appInfo.label).assertEqual("$string:app_name"); expect(dataInfo.appInfo.label).assertEqual("$string:app_name");
expect(dataInfo.appInfo.labelId >= 0).assertTrue(); expect(dataInfo.appInfo.labelId >= 0).assertTrue();
expect(dataInfo.appInfo.systemApp).assertEqual(true); expect(dataInfo.appInfo.systemApp).assertEqual(false);
expect(dataInfo.appInfo.supportedModes).assertEqual(0); expect(dataInfo.appInfo.supportedModes).assertEqual(0);
expect(dataInfo.updateTime).assertLarger(0); expect(dataInfo.updateTime).assertLarger(0);
expect(dataInfo.reqPermissions.length).assertEqual(0); expect(dataInfo.reqPermissions.length).assertEqual(0);
...@@ -541,7 +541,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -541,7 +541,7 @@ describe('ActsBundleManagerTest', function () {
expect(dataInfo.appInfo.iconId >= 0).assertTrue(); expect(dataInfo.appInfo.iconId >= 0).assertTrue();
expect(dataInfo.appInfo.label).assertEqual("$string:app_name"); expect(dataInfo.appInfo.label).assertEqual("$string:app_name");
expect(dataInfo.appInfo.labelId >= 0).assertTrue(); expect(dataInfo.appInfo.labelId >= 0).assertTrue();
expect(dataInfo.appInfo.systemApp).assertEqual(true); expect(dataInfo.appInfo.systemApp).assertEqual(false);
expect(dataInfo.appInfo.supportedModes).assertEqual(0); expect(dataInfo.appInfo.supportedModes).assertEqual(0);
expect(dataInfo.updateTime).assertLarger(0); expect(dataInfo.updateTime).assertLarger(0);
expect(dataInfo.reqPermissions.length).assertEqual(0); expect(dataInfo.reqPermissions.length).assertEqual(0);
...@@ -707,7 +707,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -707,7 +707,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon"); expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId).assertLarger(0); expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
...@@ -753,7 +753,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -753,7 +753,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon"); expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId).assertLarger(0); expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
...@@ -792,7 +792,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -792,7 +792,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon"); expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId >= 0).assertTrue(); expect(datainfo.descriptionId >= 0).assertTrue();
expect(datainfo.iconId >= 0).assertTrue(); expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.labelId >= 0).assertTrue(); expect(datainfo.labelId >= 0).assertTrue();
...@@ -829,7 +829,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -829,7 +829,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION); expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon"); expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId >= 0).assertTrue(); expect(datainfo.descriptionId >= 0).assertTrue();
expect(datainfo.iconId >= 0).assertTrue(); expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.labelId >= 0).assertTrue(); expect(datainfo.labelId >= 0).assertTrue();
...@@ -866,7 +866,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -866,7 +866,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.iconId >= 0).assertTrue(); expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.labelId >= 0).assertTrue(); expect(datainfo.labelId >= 0).assertTrue();
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
done(); done();
}) })
...@@ -890,7 +890,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -890,7 +890,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.iconId >= 0).assertTrue(); expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.label).assertEqual("$string:app_name"); expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.labelId >= 0).assertTrue(); expect(datainfo.labelId >= 0).assertTrue();
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
done(); done();
}) })
...@@ -988,7 +988,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -988,7 +988,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId).assertLarger(0); expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
done(); done();
}).catch(err => { }).catch(err => {
...@@ -1020,7 +1020,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1020,7 +1020,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId).assertLarger(0); expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
done(); done();
}) })
...@@ -1043,7 +1043,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1043,7 +1043,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId >= 0).assertTrue(); expect(datainfo.descriptionId >= 0).assertTrue();
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
expect(datainfo.enabled).assertEqual(true); expect(datainfo.enabled).assertEqual(true);
for (let j = 0; j < datainfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.moduleInfos.length; j++) {
...@@ -1081,7 +1081,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1081,7 +1081,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId >= 0).assertTrue(); expect(datainfo.descriptionId >= 0).assertTrue();
expect(parseInt(datainfo.iconId)).assertLarger(0); expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0); expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true); expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0); expect(datainfo.supportedModes).assertEqual(0);
expect(datainfo.enabled).assertEqual(true); expect(datainfo.enabled).assertEqual(true);
for (let j = 0; j < datainfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.moduleInfos.length; j++) {
...@@ -1421,7 +1421,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1421,7 +1421,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.metaData.length).assertLarger(0); expect(datainfo.metaData.length).assertLarger(0);
...@@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.metaData.length).assertLarger(0); expect(datainfo.metaData.length).assertLarger(0);
...@@ -1523,7 +1523,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1523,7 +1523,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry"); expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry");
...@@ -1564,7 +1564,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1564,7 +1564,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry"); expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry");
...@@ -1614,7 +1614,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1614,7 +1614,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.PORTRAIT); expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.PORTRAIT);
expect(datainfo.orientation).assertEqual(2); expect(datainfo.orientation).assertEqual(2);
...@@ -1682,7 +1682,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1682,7 +1682,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue(); expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name"); expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue(); expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true); expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0); expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.orientation).assertEqual(2); expect(datainfo.orientation).assertEqual(2);
expect(datainfo.applicationInfo.enabled).assertEqual(true); expect(datainfo.applicationInfo.enabled).assertEqual(true);
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"mainAbility": "com.actsbundle.napitest.MainAbility", "mainAbility": "com.actsbundle.napitest.MainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from " ...@@ -17,7 +17,7 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
import bundlendk from 'libbundlendk.so' import bundlendk from 'libbundlendk.so'
const BUNDLE_NAME = "com.actsbundle.napitest" const BUNDLE_NAME = "com.actsbundle.napitest"
const FINGER_PRINT = "7B3D8586460A7666621992FD367993D7ECDE40A8FD8E9CF525A48822E9A62655" const FINGER_PRINT = "8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5"
export default function budnleNdkNativeTest() { export default function budnleNdkNativeTest() {
describe('BundleNdkTest', function () { describe('BundleNdkTest', function () {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken3", "package": "com.example.bmsaccesstoken3",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2", "package": "com.example.bmsaccesstoken2",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken1", "package": "com.example.bmsaccesstoken1",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2", "package": "com.example.bmsaccesstoken2",
"name": ".MyApplication2", "name": ".MyApplication2",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2", "package": "com.example.bmsaccesstoken2",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"name": ".BmsThirdBundle5", "name": ".BmsThirdBundle5",
"mainAbility": "com.example.third5.AMainAbility", "mainAbility": "com.example.third5.AMainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"name": "com.example.third1.BmsThirdBundle1", "name": "com.example.third1.BmsThirdBundle1",
"colorMode": "light", "colorMode": "light",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"mainAbility": "com.example.third1.MainAbility", "mainAbility": "com.example.third1.MainAbility",
"colorMode": "dark", "colorMode": "dark",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.third4", "package": "com.example.third4",
"name": ".BmsThirdBundle4", "name": ".BmsThirdBundle4",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.c", "package": "com.example.c",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.js", "package": "com.example.js",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"name": ".BmsSystemBundle1", "name": ".BmsSystemBundle1",
"mainAbility": "com.example.system1.MainAbility", "mainAbility": "com.example.system1.MainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"name": ".BmsSystemBundle1", "name": ".BmsSystemBundle1",
"mainAbility": "com.example.system2.MainAbility", "mainAbility": "com.example.system2.MainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.vendor1", "package": "com.example.vendor1",
"name": ".BmsVendorBundle1", "name": ".BmsVendorBundle1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.third2", "package": "com.example.third2",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"module": { "module": {
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"abilities": [ "abilities": [
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.third6", "package": "com.example.third6",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"name": ".BmsThirdBundle3", "name": ".BmsThirdBundle3",
"colorMode": "auto", "colorMode": "auto",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"mainAbility": "com.example.bmsmainabilityfirstscene.MainAbility", "mainAbility": "com.example.bmsmainabilityfirstscene.MainAbility",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"mainAbility": "com.example.bmsmainabilitysecondscene.MainAbility", "mainAbility": "com.example.bmsmainabilitysecondscene.MainAbility",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsmodulenamedentry", "package": "com.example.bmsmodulenamedentry",
"name": "MyApplication1", "name": "MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.bmsmodulenamedfeature", "package": "com.example.bmsmodulenamedfeature",
"name": "MyApplication2", "name": "MyApplication2",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.myapplication", "package": "com.example.myapplication",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.myapplication", "package": "com.example.myapplication",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.myapplication1", "package": "com.example.myapplication1",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.myapplication", "package": "com.example.myapplication",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
} }
], ],
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"moduleType": "feature", "moduleType": "feature",
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"package": "com.example.myapplication1", "package": "com.example.myapplication1",
"name": ".MyApplication1", "name": ".MyApplication1",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"phone" "default"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility1", "mainElement": "MainAbility1",
"deviceTypes": [ "deviceTypes": [
"phone" "default"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"phone" "default"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册