未验证 提交 99ea1982 编写于 作者: O openharmony_ci 提交者: Gitee

!9655 ActionExtensionXTS适配

Merge pull request !9655 from xinking129/master
...@@ -485,9 +485,9 @@ export default function getBundleInfoForSelf() { ...@@ -485,9 +485,9 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null); expect(data.appInfo).assertEqual(null);
expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0);
let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo
expect(extensionList.length).assertEqual(16); expect(extensionList.length).assertEqual(17);
let count = 0; let count = 0;
for (let i = 0;i < 16; i++) { for (let i = 0;i < 17; i++) {
switch (extensionList[i].name) { switch (extensionList[i].name) {
case "Form": case "Form":
console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType)); console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType));
...@@ -621,9 +621,9 @@ export default function getBundleInfoForSelf() { ...@@ -621,9 +621,9 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null); expect(data.appInfo).assertEqual(null);
expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0);
let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo
expect(extensionList.length).assertEqual(16); expect(extensionList.length).assertEqual(17);
let count = 0; let count = 0;
for (let i = 0;i < 16; i++) { for (let i = 0;i < 17; i++) {
switch (extensionList[i].name) { switch (extensionList[i].name) {
case "Form": case "Form":
console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType)); console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType));
...@@ -1276,9 +1276,9 @@ export default function getBundleInfoForSelf() { ...@@ -1276,9 +1276,9 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null); expect(data.appInfo).assertEqual(null);
expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0);
let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo
expect(extensionList.length).assertEqual(16); expect(extensionList.length).assertEqual(17);
let count = 0; let count = 0;
for (let i = 0;i < 16; i++) { for (let i = 0;i < 17; i++) {
switch (extensionList[i].name) { switch (extensionList[i].name) {
case "Form": case "Form":
console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType)); console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType));
......
...@@ -375,6 +375,17 @@ ...@@ -375,6 +375,17 @@
"srcEntrance": "./ets/FormAbility/FormAbility.ts", "srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "push", "type": "push",
"visible": true "visible": true
},
{
"description": "$string:form_description",
"descriptionId": 16777219,
"icon": "$media:icon",
"iconId": 16777225,
"label": "$string:entry_label",
"name": "action",
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "action",
"visible": true
} }
], ],
"requestPermissions": [ "requestPermissions": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册