提交 699cff7d 编写于 作者: S SoftSquirrel

Issue:#I6XL4R

Description:add extension type(driver)
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: NSoftSquirrel <xuhao47@huawei.com>
上级 ebc60061
......@@ -357,6 +357,17 @@
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "preview",
"visible": true
},
{
"description": "$string:form_description",
"descriptionId": 16777219,
"icon": "$media:icon",
"iconId": 16777225,
"label": "$string:entry_label",
"name": "driver",
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "driver",
"visible": true
}
],
"requestPermissions": [
......
......@@ -576,10 +576,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -701,10 +706,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......
......@@ -576,10 +576,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -701,10 +706,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......
......@@ -342,6 +342,17 @@
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "preview",
"visible": true
},
{
"description": "$string:form_description",
"descriptionId": 16777219,
"icon": "$media:icon",
"iconId": 16777225,
"label": "$string:entry_label",
"name": "driver",
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "driver",
"visible": true
}
],
"requestPermissions": [
......
......@@ -580,10 +580,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -705,10 +710,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PREVIEW)
count = count + 13;
break;
case 'driver':
console.info("driver" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(91);
expect(count).assertEqual(105);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......
......@@ -342,6 +342,17 @@
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "preview",
"visible": true
},
{
"description": "$string:form_description",
"descriptionId": 16777219,
"icon": "$media:icon",
"iconId": 16777225,
"label": "$string:entry_label",
"name": "driver",
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "driver",
"visible": true
}
],
"requestPermissions": [
......
......@@ -198,6 +198,19 @@
"resource": "$profile:form_config"
}
]
},
{
"name": "DriverAbility",
"srcEntrance": "./ets/ServiceAbility/FormAbility.ts",
"label": "$string:form_FormAbility_label",
"description": "$string:form_FormAbility_desc",
"type": "driver",
"metadata": [
{
"name": "ohos.extension.form",
"resource": "$profile:form_config"
}
]
}
]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册