Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7c9398f9
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看板
提交
7c9398f9
编写于
1月 03, 2023
作者:
L
Lotol
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
回退:delete entryDir and moduleSourceDir
Signed-off-by:
N
Lotol
<
linxiangzhi@huawei.com
>
上级
676d6b70
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
79 addition
and
64 deletion
+79
-64
bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
...try/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
+4
-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
+16
-9
bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
...entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
+18
-12
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
浏览文件 @
7c9398f9
...
...
@@ -239,10 +239,12 @@ 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
(
""
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
"com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
moduleSourceDirs
.
length
)
.
assertEqual
(
0
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
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
浏览文件 @
7c9398f9
...
...
@@ -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
(
""
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"
/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag
"
);
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
.
length
)
.
assertEqual
(
0
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag"
);
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
(
""
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"
/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry
"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
"com.example.third1"
);
expect
(
info
.
moduleSourceDirs
.
length
)
.
assertEqual
(
0
);
expect
(
info
.
moduleSourceDirs
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"
);
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
浏览文件 @
7c9398f9
...
...
@@ -375,13 +375,16 @@ 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('');
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
'/com.open.harmony.packagemag');
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('');
expect(data[i].moduleSourceDirs.length).assertEqual(0);
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');
}
}
}
...
...
@@ -399,12 +402,14 @@ export default function getAllApplicationBundleTest() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
'
');
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -426,12 +431,14 @@ export default function getAllApplicationBundleTest() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
'
');
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
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
浏览文件 @
7c9398f9
...
...
@@ -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(
''
);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
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(
''
);
expect(data.moduleSourceDirs
.length).assertEqual(0
);
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.moduleSourceDirs
[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
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,12 +472,14 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_NAME);
expect(data.entryDir).assertEqual(
''
);
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME
);
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -501,12 +503,14 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
'
');
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(JSON.stringify(data.metaData)).assertEqual("{}");
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
...
...
@@ -528,12 +532,14 @@ export default function applicationBundleJsunit() {
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(BUNDLE_OTHER);
expect(data.entryDir).assertEqual(
'
');
expect(data.entryDir).assertEqual(
PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry
');
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs[0]).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual('entry');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual('');
expect(data.moduleInfos[0].moduleSourceDir).assertEqual(PATH + '/' +
BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.enabled).assertTrue();
expect(data.uid).assertLarger(0);
expect(data.entityType).assertEqual('unspecified');
...
...
bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
7c9398f9
...
...
@@ -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
(
''
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
datainfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
dataInfo
.
appInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
0
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
expect
(
datainfo
.
moduleInfos
[
j
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
(
''
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
(
''
);
expect
(
datainfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleSourceDirs
.
length
).
assert
Larger
(
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
Equal
(
0
);
expect
(
datainfo
[
i
].
moduleInfos
[
j
].
moduleSourceDir
.
length
).
assert
Larger
(
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
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
}
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
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
j
].
moduleSourceDir
).
assertEqual
(
DIR1
);
}
}
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
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
DIR3
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleName
).
assertEqual
(
"
feature
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
DIR2
);
}
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
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
0
].
moduleSourceDir
).
assertEqual
(
DIR3
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleName
).
assertEqual
(
"
feature
"
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
''
);
expect
(
datainfo
.
applicationInfo
.
moduleInfos
[
1
].
moduleSourceDir
).
assertEqual
(
DIR2
);
}
done
();
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录