未验证 提交 795fd2cb 编写于 作者: O openharmony_ci 提交者: Gitee

!4830 同步代码至release3.1分支

Merge pull request !4830 from shilei91/OpenHarmony-3.1-Release
...@@ -658,8 +658,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -658,8 +658,10 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.process).assertEqual(NAME2); expect(datainfo.process).assertEqual(NAME2);
expect(datainfo.enabled).assertEqual(true); expect(datainfo.enabled).assertEqual(true);
expect(datainfo.moduleSourceDirs.length).assertLarger(0); expect(datainfo.moduleSourceDirs.length).assertLarger(0);
expect(datainfo.moduleInfos.length).assertEqual(2);
expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature");
for (let j = 0; j < datainfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.moduleInfos.length; j++) {
expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0);
} }
done(); done();
...@@ -840,8 +842,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -840,8 +842,10 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.process).assertEqual(NAME2); expect(datainfo.process).assertEqual(NAME2);
expect(datainfo.enabled).assertEqual(true); expect(datainfo.enabled).assertEqual(true);
expect(datainfo.moduleSourceDirs.length).assertLarger(0); expect(datainfo.moduleSourceDirs.length).assertLarger(0);
expect(datainfo.moduleInfos.length).assertEqual(2);
expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature");
for (let j = 0; j < datainfo.moduleInfos.length; j++) { for (let j = 0; j < datainfo.moduleInfos.length; j++) {
expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0); expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0);
} }
done(); done();
...@@ -1087,7 +1091,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1087,7 +1091,7 @@ describe('ActsBundleManagerTest', function () {
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");
expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3); expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3);
expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("entry"); expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("feature");
expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2); expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2);
} }
done(); done();
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"distro": { "distro": {
"moduleType": "feature", "moduleType": "feature",
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry" "moduleName": "feature"
}, },
"package": "com.example.myapplication2", "package": "com.example.myapplication2",
"name": ".MyApplication2", "name": ".MyApplication2",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册