Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ef69e291
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
ef69e291
编写于
1月 04, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7094 entryDir and moduleSourceDir is empty
Merge pull request !7094 from zhoujun62/my_xts_acts
上级
171a1cf0
9681bf90
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
52 deletion
+5
-52
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
...est/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
+3
-24
ability/ability_runtime/amscontextualinforquery/actsamsstaticabilitystagecontexttest/entry/src/main/ets/test/Ability.test.ets
...stagecontexttest/entry/src/main/ets/test/Ability.test.ets
+1
-10
ability/ability_runtime/amscontextualinforquery/actsamsstaticinfomationquerytest/entry/src/main/ets/test/Ability.test.ets
...omationquerytest/entry/src/main/ets/test/Ability.test.ets
+1
-10
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+0
-8
未找到文件。
ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/getAbilityInfoJsunit.test.ets
浏览文件 @
ef69e291
...
...
@@ -277,11 +277,8 @@ export default function getHapModuleInfoJsunit() {
expect(typeof (info.iconId)).assertEqual("string");
expect(typeof (info.process)).assertEqual("string");
expect(typeof (info.supportedModes)).assertEqual("number");
expect(Array.isArray(info.moduleSourceDirs)).assertEqual(true);
expect(Array.isArray(info.permissions)).assertEqual(true);
expect(Array.isArray(info.moduleInfos)).assertEqual(true);
expect(typeof (info.entryDir)).assertEqual("string");
expect(info.name).assertEqual("com.ohos.acecollaboration");
expect(info.description).assertEqual("");
expect(info.descriptionId).assertEqual(0);
...
...
@@ -291,38 +288,20 @@ export default function getHapModuleInfoJsunit() {
expect(info.icon).assertEqual("$media:icon");
expect(info.process).assertEqual("com.ohos.acecollaboration");
expect(info.supportedModes).assertEqual(0);
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.ohos.acecollaboration");
if (info.moduleSourceDirs.length == 1){
expect(info.moduleInfos[0].moduleName).assertEqual("entry");
expect(info.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.ohos.acecollaboration");
}else if(info.moduleSourceDirs.length == 2) {
} else if(info.moduleSourceDirs.length == 2) {
if (info.moduleInfos[0].moduleName == "myapplication1") {
expect(info.moduleInfos[0].moduleName).assertEqual("myapplication1");
expect(info.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.example.myapplication1");
expect(info.moduleInfos[1].moduleName).assertEqual("entry");
expect(info.moduleInfos[1].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.ohos.acecollaboration");
}else{
} else {
expect(info.moduleInfos[0].moduleName).assertEqual("myapplication2");
expect(info.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.example.myapplication2");
expect(info.moduleInfos[1].moduleName).assertEqual("entry");
expect(info.moduleInfos[1].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.ohos.acecollaboration");
}
}
else
{
}
else if (info.moduleSourceDirs.length == 3)
{
expect(info.moduleInfos[0].moduleName).assertEqual("myapplication1");
expect(info.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.example.myapplication1");
expect(info.moduleInfos[1].moduleName).assertEqual("myapplication2");
expect(info.moduleInfos[1].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.example.myapplication2");
expect(info.moduleInfos[2].moduleName).assertEqual("entry");
expect(info.moduleInfos[2].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.ohos.acecollaboration/com.ohos.acecollaboration");
}
console.log(msg + "---checkApplicationInfo End--- ");
...
...
ability/ability_runtime/amscontextualinforquery/actsamsstaticabilitystagecontexttest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
ef69e291
...
...
@@ -85,10 +85,8 @@ export default function abilityTest() {
expect(typeof (data.iconId)).assertEqual("string");
expect(typeof (data.process)).assertEqual("string");
expect(typeof (data.supportedModes)).assertEqual("number");
expect(Array.isArray(data.moduleSourceDirs)).assertEqual(true);
expect(Array.isArray(data.permissions)).assertEqual(true);
expect(Array.isArray(data.moduleInfos)).assertEqual(true);
expect(typeof (data.entryDir)).assertEqual("string");
expect(typeof (data.codePath)).assertEqual("string");
expect(typeof (data.removable)).assertEqual("boolean");
...
...
@@ -104,15 +102,8 @@ export default function abilityTest() {
expect(data.iconId.length).assertLarger(0);
expect(data.process).assertEqual("com.example.staticabilitystagecontext");
expect(data.supportedModes).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext/com.example.staticabilitystagecontext");
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual("com.example.staticabilitystagecontext");
expect(data.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext/com.example.staticabilitystagecontext");
expect(data.entryDir).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext/com.example.staticabilitystagecontext");
expect(data.codePath).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext");
expect(data.removable).assertEqual(true);
...
...
ability/ability_runtime/amscontextualinforquery/actsamsstaticinfomationquerytest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
ef69e291
...
...
@@ -270,10 +270,8 @@ export default function abilityTest() {
expect(typeof (data.iconId)).assertEqual("string");
expect(typeof (data.process)).assertEqual("string");
expect(typeof (data.supportedModes)).assertEqual("number");
expect(Array.isArray(data.moduleSourceDirs)).assertEqual(true);
expect(Array.isArray(data.permissions)).assertEqual(true);
expect(Array.isArray(data.moduleInfos)).assertEqual(true);
expect(typeof (data.entryDir)).assertEqual("string");
expect(typeof (data.codePath)).assertEqual("string");
expect(typeof (data.removable)).assertEqual("boolean");
console.log("checkApplicationInfo_expect_typeof_end")
...
...
@@ -288,15 +286,8 @@ export default function abilityTest() {
expect(data.iconId.length).assertLarger(0);
expect(data.process).assertEqual("com.example.staticinfomationquery");
expect(data.supportedModes).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticinfomationquery/com.example.staticinfomationquery");
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual("com.example.staticinfomationquery");
expect(data.moduleInfos[0].moduleSourceDir).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticinfomationquery/com.example.staticinfomationquery");
expect(data.entryDir).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticinfomationquery/com.example.staticinfomationquery");
expect(data.codePath).assertEqual("/data/app/el1/bundle/public/com.example.staticinfomationquery")
expect(data.removable).assertEqual(true);
console.log("checkApplicationInfo end " + data);
...
...
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
ef69e291
...
...
@@ -891,10 +891,8 @@ describe('ActsFeatureAbilityTest', function () {
expect
(
typeof
(
info
.
iconId
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
.
process
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
info
.
supportedModes
)).
assertEqual
(
"
number
"
);
expect
(
Array
.
isArray
(
info
.
moduleSourceDirs
)).
assertEqual
(
true
);
expect
(
Array
.
isArray
(
info
.
permissions
)).
assertEqual
(
true
);
expect
(
Array
.
isArray
(
info
.
moduleInfos
)).
assertEqual
(
true
);
expect
(
typeof
(
info
.
entryDir
)).
assertEqual
(
"
string
"
);
expect
(
info
.
name
).
assertEqual
(
"
com.example.actsfeatureabilitytest
"
);
expect
(
info
.
description
).
assertEqual
(
"
descriptionTest
"
);
...
...
@@ -907,13 +905,7 @@ describe('ActsFeatureAbilityTest', function () {
// expect(info.iconId).assertEqual(0); //create by DevEco when building HAP.
expect
(
info
.
process
).
assertEqual
(
"
com.example.actsfeatureabilitytest
"
);
expect
(
info
.
supportedModes
).
assertEqual
(
0
);
expect
(
info
.
moduleSourceDirs
[
0
]).
assertEqual
(
"
/data/app/el1/bundle/public/
"
+
"
com.example.actsfeatureabilitytest/com.example.actsfeatureabilitytest
"
);
expect
(
info
.
moduleInfos
[
0
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
info
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
"
/data/app/el1/bundle/public/
"
+
"
com.example.actsfeatureabilitytest/com.example.actsfeatureabilitytest
"
);
expect
(
info
.
entryDir
).
assertEqual
(
"
/data/app/el1/bundle/public/
"
+
"
com.example.actsfeatureabilitytest/com.example.actsfeatureabilitytest
"
);
console
.
info
(
"
getApplicationInfo : end
"
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录