未验证 提交 44b25e27 编写于 作者: O openharmony_ci 提交者: Gitee

!1664 【XTS】bundle_manger xts代码适配

Merge pull request !1664 from ry/master
...@@ -41,7 +41,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -41,7 +41,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
"bundleName": 'com.example.third1', "bundleName": 'com.example.third1',
"abilityName": 'com.example.third1.MainAbility', "abilityName": 'com.example.third1.MainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
for (let i = 0, len = dataInfos.length; i < len; i++) { for (let i = 0, len = dataInfos.length; i < len; i++) {
dataMap.set(dataInfos[i].name, dataInfos[i].metaData) dataMap.set(dataInfos[i].name, dataInfos[i].metaData)
} }
...@@ -95,7 +95,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -95,7 +95,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
"bundleName": 'com.example.third1', "bundleName": 'com.example.third1',
"abilityName": 'com.example.third1.AMainAbility', "abilityName": 'com.example.third1.AMainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
for (let i = 0, len = dataInfos.length; i < len; i++) { for (let i = 0, len = dataInfos.length; i < len; i++) {
dataMap.set(dataInfos[i].name, dataInfos[i].metaData) dataMap.set(dataInfos[i].name, dataInfos[i].metaData)
} }
...@@ -144,7 +144,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -144,7 +144,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
bundleName: 'com.example.third1', bundleName: 'com.example.third1',
abilityName: 'com.example.third1.MainAbility', abilityName: 'com.example.third1.MainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
expect(dataInfos.length).assertEqual(0); expect(dataInfos.length).assertEqual(0);
}); });
done(); done();
...@@ -176,7 +176,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -176,7 +176,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
bundleName: 'com.example.third5', bundleName: 'com.example.third5',
abilityName: 'com.example.third5.AMainAbility', abilityName: 'com.example.third5.AMainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
for (let i = 0, len = dataInfos.length; i < len; i++) { for (let i = 0, len = dataInfos.length; i < len; i++) {
dataMap.set(dataInfos[i].name, dataInfos[i].metaData) dataMap.set(dataInfos[i].name, dataInfos[i].metaData)
} }
...@@ -208,7 +208,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -208,7 +208,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
bundleName: 'com.example.noexist', bundleName: 'com.example.noexist',
abilityName: 'com.example.noexist.MainAbility', abilityName: 'com.example.noexist.MainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
expect(dataInfos.length).assertEqual(0); expect(dataInfos.length).assertEqual(0);
}) })
done(); done();
...@@ -227,7 +227,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -227,7 +227,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
bundleName: 'com.example.system1', bundleName: 'com.example.system1',
abilityName: 'com.example.system1.MainAbility', abilityName: 'com.example.system1.MainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
for (let i = 0, len = dataInfos.length; i < len; i++) { for (let i = 0, len = dataInfos.length; i < len; i++) {
dataMap.set(dataInfos[i].name, dataInfos[i].metaData) dataMap.set(dataInfos[i].name, dataInfos[i].metaData)
} }
...@@ -251,7 +251,7 @@ describe('ActsBmsMetaDataTest', function () { ...@@ -251,7 +251,7 @@ describe('ActsBmsMetaDataTest', function () {
{ {
bundleName: 'com.example.vendor1', bundleName: 'com.example.vendor1',
abilityName: 'com.example.vendor1.MainAbility', abilityName: 'com.example.vendor1.MainAbility',
}, 32, 0).then(dataInfos => { }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, 0).then(dataInfos => {
for (let i = 0, len = dataInfos.length; i < len; i++) { for (let i = 0, len = dataInfos.length; i < len; i++) {
dataMap.set(dataInfos[i].name, dataInfos[i].metaData) dataMap.set(dataInfos[i].name, dataInfos[i].metaData)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册