Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a924f4d0
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看板
未验证
提交
a924f4d0
编写于
12月 30, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6910 delete entryDir and moduleSourceDir
Merge pull request !6910 from SoftSquirrel/master
上级
4ce64383
82a581f4
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
64 addition
and
83 deletion
+64
-83
bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
...try/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
+2
-2
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
...eretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
+4
-4
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
...ry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
+9
-16
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
...entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
+12
-18
bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets
...est/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets
+0
-6
bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js
...sbundlemanagertest/src/main/js/test/ExampleJsunit.test.js
+37
-37
未找到文件。
bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
浏览文件 @
a924f4d0
...
...
@@ -239,10 +239,10 @@ export default function actsBmsJsUnPermissionTest() {
expect
(
info
.
label
)
.
assertEqual
(
"
$string
:entry_MainAbility"
);
expect
(
info
.
labelId
>
0
)
.
assertTrue
();
expect
(
info
.
systemApp
)
.
assertEqual
(
false
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"
/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest
"
);
expect
(
info
.
entryDir
)
.
assertEqual
(
""
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
"com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
moduleSourceDirs
.
length
)
.
assertEqual
(
0
);
expect
(
info
.
enabled
)
.
assertEqual
(
true
);
expect
(
info
.
uid
)
.
assertLarger
(
0
);
expect
(
info
.
entityType
)
.
assertEqual
(
"unspecified"
);
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
浏览文件 @
a924f4d0
...
...
@@ -264,13 +264,13 @@ export default function GetabilityInfo() {
expect
(
info
.
labelId
>
0
)
.
assertTrue
();
expect
(
info
.
systemApp
)
.
assertEqual
(
false
);
expect
(
typeof
(
info
.
entryDir
))
.
assertEqual
(
"string"
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"
/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag
"
);
expect
(
info
.
entryDir
)
.
assertEqual
(
""
);
expect
(
typeof
(
info
.
supportedModes
))
.
assertEqual
(
"number"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
typeof
(
info
.
process
))
.
assertEqual
(
"string"
);
expect
(
info
.
process
)
.
assertEqual
(
"com.open.harmony.packagemag"
);
expect
(
Array
.
isArray
(
info
.
moduleSourceDirs
))
.
assertEqual
(
true
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag"
);
expect
(
info
.
moduleSourceDirs
.
length
)
.
assertEqual
(
0
);
expect
(
Array
.
isArray
(
info
.
permissions
))
.
assertEqual
(
true
);
}
...
...
@@ -314,10 +314,10 @@ export default function GetabilityInfo() {
expect
(
info
.
label
)
.
assertEqual
(
"
$string
:app_name"
);
expect
(
info
.
labelId
>
0
)
.
assertTrue
();
expect
(
info
.
systemApp
)
.
assertEqual
(
false
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"
/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry
"
);
expect
(
info
.
entryDir
)
.
assertEqual
(
""
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
"com.example.third1"
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"
);
expect
(
info
.
moduleSourceDirs
.
length
)
.
assertEqual
(
0
);
expect
(
JSON
.
stringify
(
info
.
metaData
))
.
assertEqual
(
"{}"
);
expect
(
info
.
enabled
)
.
assertEqual
(
true
);
expect
(
info
.
uid
)
.
assertLarger
(
0
);
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
浏览文件 @
a924f4d0
...
...
@@ -375,16 +375,13 @@ export default function getAllApplicationBundleTest() {
expect(data[i].systemApp).assertEqual(false);
expect(data[i].supportedModes).assertEqual(0);
expect(data[i].process).assertEqual('com.open.harmony.packagemag');
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
'/com.open.harmony.packagemag');
expect(data[i].entryDir).assertEqual('');
expect(data[i].enabled).assertEqual(true);
expect(data[i].entityType).assertEqual('unspecified');
expect(data[i].removable).assertEqual(true);
expect(data[i].moduleInfos[0].moduleName).assertEqual('entry');
expect(data[i].moduleInfos[0].moduleSourceDir).assertEqual('/data/app/el1/bundle/public/' +
'com.open.harmony.packagemag/com.open.harmony.packagemag');
expect(data[i].moduleSourceDirs[0]).assertEqual('/data/app/el1/bundle/public/' +
'com.open.harmony.packagemag/com.open.harmony.packagemag');
expect(data[i].moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data[i].moduleSourceDirs.length).assertEqual(0);
}
}
}
...
...
@@ -402,14 +399,12 @@ export default function getAllApplicationBundleTest() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.entryDir).assertEqual(
'
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -431,14 +426,12 @@ export default function getAllApplicationBundleTest() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.entryDir).assertEqual(
'
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
expect(data.entityType).assertEqual('unspecified');
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
浏览文件 @
a924f4d0
...
...
@@ -446,13 +446,13 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertEqual(false);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_NAME);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.entryDir).assertEqual(
''
);
expect(data.enabled).assertEqual(true);
expect(data.entityType).assertEqual('unspecified');
expect(data.removable).assertEqual(true);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.moduleSourceDirs
[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(
''
);
expect(data.moduleSourceDirs
.length).assertEqual(0
);
expect(data.permissions[0]).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.permissions[1]).assertEqual("ohos.permission.GET_BUNDLE_INFO_PRIVILEGED");
expect(data.permissions[2]).assertEqual("ohos.permission.USE_BLUETOOTH");
...
...
@@ -472,14 +472,12 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_NAME);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.entryDir).assertEqual(
''
);
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -503,14 +501,12 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.entryDir).assertEqual(
'
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -532,14 +528,12 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.entryDir).assertEqual(
'
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
expect(data.entityType).assertEqual('unspecified');
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets
浏览文件 @
a924f4d0
...
...
@@ -103,7 +103,6 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo.icon).assertEqual("$media:icon");
expect(data.appInfo.iconId).assertLarger(0);
expect(data.appInfo.process).assertEqual(BUNDLE_NAME);
expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR);
expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test");
expect(data.appInfo.removable).assertTrue(0);
expect(data.appInfo.accessTokenId).assertLarger(0);
...
...
@@ -156,7 +155,6 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo.icon).assertEqual("$media:icon");
expect(data.appInfo.iconId).assertLarger(0);
expect(data.appInfo.process).assertEqual(BUNDLE_NAME);
expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR);
expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test");
expect(data.appInfo.removable).assertTrue(0);
expect(data.appInfo.accessTokenId).assertLarger(0);
...
...
@@ -211,7 +209,6 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet");
expect(data.hapModulesInfo[0].installationFree).assertFalse();
expect(data.hapModulesInfo[0].hashValue).assertEqual("");
expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
expect(data.signatureInfo).assertEqual(null);
...
...
@@ -250,7 +247,6 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet");
expect(data.hapModulesInfo[0].installationFree).assertFalse();
expect(data.hapModulesInfo[0].hashValue).assertEqual("");
expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
expect(data.signatureInfo).assertEqual(null);
...
...
@@ -1021,7 +1017,6 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo.icon).assertEqual("$media:icon");
expect(data.appInfo.iconId).assertLarger(0);
expect(data.appInfo.process).assertEqual(BUNDLE_NAME);
expect(data.appInfo.entryDir).assertEqual(SOURCE_DIR);
expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test");
expect(data.appInfo.removable).assertTrue(0);
expect(data.appInfo.accessTokenId).assertLarger(0);
...
...
@@ -1059,7 +1054,6 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].deviceTypes[1]).assertEqual("tablet");
expect(data.hapModulesInfo[0].installationFree).assertFalse();
expect(data.hapModulesInfo[0].hashValue).assertEqual("");
expect(data.hapModulesInfo[0].moduleSourceDir).assertEqual(SOURCE_DIR);
console.info("checkCommonHapModuleInfo end");
}
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
a924f4d0
...
...
@@ -96,7 +96,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
entryInstallationFree
).
assertEqual
(
false
);
for
(
let
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
done
();
...
...
@@ -160,7 +160,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
entryInstallationFree
).
assertEqual
(
false
);
for
(
let
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
}
...
...
@@ -251,7 +251,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
done
();
...
...
@@ -295,7 +295,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
done
();
...
...
@@ -427,7 +427,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
done
();
...
...
@@ -508,7 +508,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
entryInstallationFree
).
assertEqual
(
false
);
for
(
let
j
=
0
;
j
<
dataInfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
expect
(
dataInfo
.
appInfo
.
enabled
).
assertEqual
(
true
);
console
.
info
(
"
testGetBundleInfoCurrentUserIdPromise end --------
"
);
...
...
@@ -557,7 +557,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
entryInstallationFree
).
assertEqual
(
false
);
for
(
let
j
=
0
;
j
<
dataInfo
.
appInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
console
.
info
(
"
testGetBundleInfoCurrentUserIdCallback end --------
"
);
done
();
...
...
@@ -626,12 +626,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
[
i
].
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleName
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
}
...
...
@@ -648,12 +648,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
length
).
assertLarger
(
0
);
for
(
let
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
[
i
].
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleName
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
}
done
();
...
...
@@ -695,7 +695,7 @@ describe('ActsBundleManagerTest', function () {
userId
).
then
(
datainfo
=>
{
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
console
.
info
(
"
getApplicationInfo success:
"
+
JSON
.
stringify
(
datainfo
));
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_DESCRIPTION
);
...
...
@@ -711,10 +711,10 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
extra
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
done
();
}).
catch
(
err
=>
{
...
...
@@ -741,7 +741,7 @@ describe('ActsBundleManagerTest', function () {
}
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
console
.
info
(
"
testGetApplicationInfoMetaDataCallback success:
"
+
JSON
.
stringify
(
datainfo
));
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_DESCRIPTION
);
...
...
@@ -757,10 +757,10 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
extra
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
done
();
})
...
...
@@ -780,7 +780,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_DESCRIPTION
);
...
...
@@ -793,12 +793,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
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
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
done
();
})
...
...
@@ -817,7 +817,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_DESCRIPTION
);
...
...
@@ -830,12 +830,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Equal
(
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
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
done
();
})
...
...
@@ -1042,7 +1042,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
done
();
}).
catch
(
error
=>
{
...
...
@@ -1080,7 +1080,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
done
();
})
...
...
@@ -1150,12 +1150,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
[
i
].
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleName
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
}
done
();
...
...
@@ -1177,12 +1177,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
[
i
].
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleName
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
}
done
();
...
...
@@ -1204,12 +1204,12 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
supportedModes
).
assertEqual
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
[
i
].
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleName
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
}
}
done
();
...
...
@@ -1421,7 +1421,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
metaData
.
length
).
assertLarger
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
applicationInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
}
done
();
...
...
@@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
metaData
.
length
).
assertLarger
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
applicationInfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
''
);
}
}
done
();
...
...
@@ -1521,9 +1521,9 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
DIR3
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleName
).
assertEqual
(
"
feature
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
DIR2
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
''
);
}
done
();
})
...
...
@@ -1562,9 +1562,9 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
DIR3
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleName
).
assertEqual
(
"
feature
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
DIR2
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
''
);
}
done
();
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录