提交 2bcaf745 编写于 作者: I inter515

新增属性覆盖

Signed-off-by: Ninter515 <ry.renyi@huawei.com>
上级 ecf0d81c
......@@ -11,7 +11,7 @@
"kits": [
{
"test-file-name": [
"ActsBundleMgrStageEtsTest.hap",
"ActsBundleMgrOverlayEtsTest.hap",
"bmsOverlayDemo.hap"
],
"type": "AppInstallKit",
......
......@@ -111,6 +111,8 @@ export default function getOverlayModuleInfo() {
it('GetOverlayModuleInfoModuleNameIsOverlay', 0, async function (done) {
await overlay.getOverlayModuleInfo(MODULE_NAME2).then(data => {
Utils.info("GetOverlayModuleInfoModuleNameIsOverlay result" + JSON.stringify(data));
let overlayModuleInfoTest: overlay.OverlayModuleInfo = data;
expect(typeof (overlayModuleInfoTest.bundleName)).assertEqual('string');
expect(data.bundleName).assertEqual("ohos.acts.bundle.overlay.test");
expect(data.moduleName).assertEqual("stage1");
expect(data.targetModuleName).assertEqual("entry1");
......
......@@ -94,6 +94,7 @@ export default function getBundleInfoForSelf() {
await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION).then(data => {
console.info("getBundleInfoForSelfApplicationPro" + JSON.stringify(data.appInfo));
checkCommonBundleInfo(data);
expect(bundle.ExtensionAbilityType.PRINT).assertEqual(15);
expect(data.appInfo.bundleType).assertEqual(bundle.BundleType.APP);
expect(data.appInfo.name).assertEqual(BUNDLE_NAME);
expect(data.appInfo.description).assertEqual("$string:description_application");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册