Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bb9e09ac
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看板
提交
bb9e09ac
编写于
6月 16, 2022
作者:
S
shilei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix xts testcases
Signed-off-by:
N
shilei
<
shilei91@huawei.com
>
上级
30547c2b
变更
25
显示空白变更内容
内联
并排
Showing
25 changed file
with
134 addition
and
94 deletion
+134
-94
appexecfwk/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/MainAbility/test/ActsBmsEtsModuleNameTest.test.ets
...in/ets/MainAbility/test/ActsBmsEtsModuleNameTest.test.ets
+4
-4
appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
...try/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
+4
-4
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsQueryAbilityByWant.test.js
.../entry/src/main/js/test/ActsBmsQueryAbilityByWant.test.js
+1
-1
appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/ActsBmsJsTest.test.js
...ctsbmsjstest/entry/src/main/js/test/ActsBmsJsTest.test.js
+4
-4
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/config.json
...nager/actsbundlemanageretstest/entry/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
...eretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
+6
-6
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
...ry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
+4
-4
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
...entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
+6
-6
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getBundleArchiveInfo.test.ets
...est/entry/src/main/ets/test/getBundleArchiveInfo.test.ets
+9
-8
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/resources/base/element/string.json
...etstest/entry/src/main/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
...emanagertest/entry/src/main/js/test/ExampleJsunit.test.js
+48
-49
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json
...r/sceneProject/bmsgetinfosfirstscene/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json
...firstscene/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json
...dlemanager/sceneProject/bmsscenefive/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/js/resources/base/element/string.json
...sscenefive/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/config.json
...dlemanager/sceneProject/bmsscenefour/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/js/resources/base/element/string.json
...sscenefour/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/config.json
...ndlemanager/sceneProject/bmssceneone/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/js/resources/base/element/string.json
...mssceneone/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json
...ndlemanager/sceneProject/bmsscenesix/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/js/resources/base/element/string.json
...msscenesix/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json
...lemanager/sceneProject/bmsscenethree/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/js/resources/base/element/string.json
...scenethree/src/main/js/resources/base/element/string.json
+4
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json
...ndlemanager/sceneProject/bmsscenetwo/src/main/config.json
+2
-1
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/js/resources/base/element/string.json
...msscenetwo/src/main/js/resources/base/element/string.json
+4
-0
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/MainAbility/test/ActsBmsEtsModuleNameTest.test.ets
浏览文件 @
bb9e09ac
...
@@ -483,7 +483,7 @@ export default function actsBmsJsModuleNameTest() {
...
@@ -483,7 +483,7 @@ export default function actsBmsJsModuleNameTest() {
expect(data.isVisible).assertEqual(false);
expect(data.isVisible).assertEqual(false);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("phone");
expect(typeof (data.process)).assertEqual("string");
expect(typeof (data.process)).assertEqual("string");
expect(data.process).assertEqual("");
expect(data.process).assertEqual("
com.example.bmsmodulename
");
expect(typeof (data.uri)).assertEqual("string");
expect(typeof (data.uri)).assertEqual("string");
expect(data.uri).assertEqual("");
expect(data.uri).assertEqual("");
expect(data.moduleName).assertEqual("entry");
expect(data.moduleName).assertEqual("entry");
...
@@ -498,9 +498,9 @@ export default function actsBmsJsModuleNameTest() {
...
@@ -498,9 +498,9 @@ export default function actsBmsJsModuleNameTest() {
expect(typeof (info.accessTokenId)).assertEqual("number");
expect(typeof (info.accessTokenId)).assertEqual("number");
expect(info.accessTokenId > 0).assertTrue();
expect(info.accessTokenId > 0).assertTrue();
expect(typeof (info.description)).assertEqual("string");
expect(typeof (info.description)).assertEqual("string");
expect(info.description).assertEqual("
$string:mainability_description
");
expect(info.description).assertEqual("");
expect(typeof (info.descriptionId)).assertEqual("number");
expect(typeof (info.descriptionId)).assertEqual("number");
expect(info.descriptionId
> 0).assertTrue(
);
expect(info.descriptionId
).assertEqual(0
);
expect(typeof (info.icon)).assertEqual("string");
expect(typeof (info.icon)).assertEqual("string");
expect(info.icon).assertEqual("$media:icon");
expect(info.icon).assertEqual("$media:icon");
expect(typeof (info.iconId)).assertEqual("number");
expect(typeof (info.iconId)).assertEqual("number");
...
@@ -513,7 +513,7 @@ export default function actsBmsJsModuleNameTest() {
...
@@ -513,7 +513,7 @@ export default function actsBmsJsModuleNameTest() {
expect(typeof (info.entryDir)).assertEqual("string");
expect(typeof (info.entryDir)).assertEqual("string");
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.bmsmodulename/com.example.bmsmodulenamedentry");
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.example.bmsmodulename/com.example.bmsmodulenamedentry");
expect(typeof (info.process)).assertEqual("string");
expect(typeof (info.process)).assertEqual("string");
expect(info.process).assertEqual("");
expect(info.process).assertEqual("
com.example.bmsmodulename
");
expect(Array.isArray(info.permissions)).assertEqual(true);
expect(Array.isArray(info.permissions)).assertEqual(true);
console.log("---checkDataInfo End--- ");
console.log("---checkDataInfo End--- ");
}
}
...
...
appexecfwk/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets
浏览文件 @
bb9e09ac
...
@@ -238,7 +238,7 @@ export default function actsBmsJsUnPermissionTest() {
...
@@ -238,7 +238,7 @@ export default function actsBmsJsUnPermissionTest() {
expect
(
data
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
data
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
data
.
isVisible
)
.
assertEqual
(
true
);
expect
(
data
.
isVisible
)
.
assertEqual
(
true
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
data
.
process
)
.
assertEqual
(
""
);
expect
(
data
.
process
)
.
assertEqual
(
"
com.example.actsbmsetsunpermissiontest
"
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
expect
(
data
.
type
)
.
assertEqual
(
1
);
expect
(
data
.
type
)
.
assertEqual
(
1
);
...
@@ -265,8 +265,8 @@ export default function actsBmsJsUnPermissionTest() {
...
@@ -265,8 +265,8 @@ export default function actsBmsJsUnPermissionTest() {
expect
(
info
.
name
)
.
assertEqual
(
"com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
name
)
.
assertEqual
(
"com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
codePath
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
codePath
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
info
.
description
)
.
assertEqual
(
"
$string
:description_mainability
"
);
expect
(
info
.
description
)
.
assertEqual
(
""
);
expect
(
info
.
descriptionId
>
0
)
.
assertTrue
(
);
expect
(
info
.
descriptionId
)
.
assertEqual
(
0
);
expect
(
info
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
info
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
info
.
iconId
>
0
)
.
assertTrue
();
expect
(
info
.
iconId
>
0
)
.
assertTrue
();
expect
(
info
.
label
)
.
assertEqual
(
"
$string
:entry_MainAbility"
);
expect
(
info
.
label
)
.
assertEqual
(
"
$string
:entry_MainAbility"
);
...
@@ -274,7 +274,7 @@ export default function actsBmsJsUnPermissionTest() {
...
@@ -274,7 +274,7 @@ export default function actsBmsJsUnPermissionTest() {
expect
(
info
.
systemApp
)
.
assertEqual
(
true
);
expect
(
info
.
systemApp
)
.
assertEqual
(
true
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
entryDir
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
""
);
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
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.actsbmsetsunpermissiontest/com.example.actsbmsetsunpermissiontest"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsQueryAbilityByWant.test.js
浏览文件 @
bb9e09ac
...
@@ -158,7 +158,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
...
@@ -158,7 +158,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
expect
(
data
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
data
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
data
.
deviceCapabilities
.
length
).
assertEqual
(
0
);
expect
(
data
.
deviceCapabilities
.
length
).
assertEqual
(
0
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
data
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
data
.
process
).
assertEqual
(
''
);
expect
(
data
.
process
).
assertEqual
(
SYSTEM_NAME
);
expect
(
data
.
uri
).
assertEqual
(
''
);
expect
(
data
.
uri
).
assertEqual
(
''
);
expect
(
data
.
bundleName
).
assertEqual
(
SYSTEM_NAME
);
expect
(
data
.
bundleName
).
assertEqual
(
SYSTEM_NAME
);
expect
(
data
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
data
.
moduleName
).
assertEqual
(
"
entry
"
);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/ActsBmsJsTest.test.js
浏览文件 @
bb9e09ac
...
@@ -54,7 +54,7 @@ describe('ActsBmsJsTest', function () {
...
@@ -54,7 +54,7 @@ describe('ActsBmsJsTest', function () {
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
BUNDLE_NAME2
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME2
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME2
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -130,7 +130,7 @@ describe('ActsBmsJsTest', function () {
...
@@ -130,7 +130,7 @@ describe('ActsBmsJsTest', function () {
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
BUNDLE_NAME4
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME4
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME4
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -173,7 +173,7 @@ describe('ActsBmsJsTest', function () {
...
@@ -173,7 +173,7 @@ describe('ActsBmsJsTest', function () {
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
isVisible
).
assertEqual
(
true
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
process
).
assertEqual
(
BUNDLE_NAME5
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
uri
).
assertEqual
(
""
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME5
);
expect
(
abilityInfo1
.
bundleName
).
assertEqual
(
BUNDLE_NAME5
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
abilityInfo1
.
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -205,7 +205,7 @@ describe('ActsBmsJsTest', function () {
...
@@ -205,7 +205,7 @@ describe('ActsBmsJsTest', function () {
expect
(
info
.
isVisible
).
assertEqual
(
true
);
expect
(
info
.
isVisible
).
assertEqual
(
true
);
expect
(
info
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
info
.
permissions
.
length
).
assertEqual
(
0
);
expect
(
info
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
info
.
deviceTypes
[
0
]).
assertEqual
(
'
phone
'
);
expect
(
info
.
process
).
assertEqual
(
""
);
expect
(
info
.
process
).
assertEqual
(
BUNDLE_NAME3
);
expect
(
info
.
uri
).
assertEqual
(
""
);
expect
(
info
.
uri
).
assertEqual
(
""
);
expect
(
info
.
bundleName
).
assertEqual
(
BUNDLE_NAME3
);
expect
(
info
.
bundleName
).
assertEqual
(
BUNDLE_NAME3
);
expect
(
info
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
info
.
moduleName
).
assertEqual
(
"
entry
"
);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
"autoDesignWidth"
:
false
"autoDesignWidth"
:
false
}
}
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetabilityInfo.test.ets
浏览文件 @
bb9e09ac
...
@@ -232,7 +232,7 @@ export default function GetabilityInfo() {
...
@@ -232,7 +232,7 @@ export default function GetabilityInfo() {
expect
(
Array
.
isArray
(
data
.
deviceCapabilities
))
.
assertEqual
(
true
);
expect
(
Array
.
isArray
(
data
.
deviceCapabilities
))
.
assertEqual
(
true
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
typeof
(
data
.
process
))
.
assertEqual
(
"string"
);
expect
(
typeof
(
data
.
process
))
.
assertEqual
(
"string"
);
expect
(
data
.
process
)
.
assertEqual
(
""
);
expect
(
data
.
process
)
.
assertEqual
(
"
com.open.harmony.packagemag
"
);
expect
(
typeof
(
data
.
uri
))
.
assertEqual
(
"string"
);
expect
(
typeof
(
data
.
uri
))
.
assertEqual
(
"string"
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
...
@@ -251,7 +251,7 @@ export default function GetabilityInfo() {
...
@@ -251,7 +251,7 @@ export default function GetabilityInfo() {
expect
(
typeof
(
info
.
accessTokenId
))
.
assertEqual
(
"number"
);
expect
(
typeof
(
info
.
accessTokenId
))
.
assertEqual
(
"number"
);
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
typeof
(
info
.
description
))
.
assertEqual
(
"string"
);
expect
(
typeof
(
info
.
description
))
.
assertEqual
(
"string"
);
expect
(
info
.
description
)
.
assertEqual
(
"
$string
:
mainabilit
y_description"
);
expect
(
info
.
description
)
.
assertEqual
(
"
$string
:
entr
y_description"
);
expect
(
typeof
(
info
.
descriptionId
))
.
assertEqual
(
"number"
);
expect
(
typeof
(
info
.
descriptionId
))
.
assertEqual
(
"number"
);
expect
(
info
.
descriptionId
>
0
)
.
assertTrue
();
expect
(
info
.
descriptionId
>
0
)
.
assertTrue
();
expect
(
typeof
(
info
.
icon
))
.
assertEqual
(
"string"
);
expect
(
typeof
(
info
.
icon
))
.
assertEqual
(
"string"
);
...
@@ -268,7 +268,7 @@ export default function GetabilityInfo() {
...
@@ -268,7 +268,7 @@ export default function GetabilityInfo() {
expect
(
typeof
(
info
.
supportedModes
))
.
assertEqual
(
"number"
);
expect
(
typeof
(
info
.
supportedModes
))
.
assertEqual
(
"number"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
typeof
(
info
.
process
))
.
assertEqual
(
"string"
);
expect
(
typeof
(
info
.
process
))
.
assertEqual
(
"string"
);
expect
(
info
.
process
)
.
assertEqual
(
""
);
expect
(
info
.
process
)
.
assertEqual
(
"
com.open.harmony.packagemag
"
);
expect
(
Array
.
isArray
(
info
.
moduleSourceDirs
))
.
assertEqual
(
true
);
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
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag"
);
expect
(
Array
.
isArray
(
info
.
permissions
))
.
assertEqual
(
true
);
expect
(
Array
.
isArray
(
info
.
permissions
))
.
assertEqual
(
true
);
...
@@ -282,7 +282,7 @@ export default function GetabilityInfo() {
...
@@ -282,7 +282,7 @@ export default function GetabilityInfo() {
expect
(
data
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
data
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
data
.
isVisible
)
.
assertEqual
(
true
);
expect
(
data
.
isVisible
)
.
assertEqual
(
true
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
data
.
deviceTypes
[
0
])
.
assertEqual
(
"phone"
);
expect
(
data
.
process
)
.
assertEqual
(
""
);
expect
(
data
.
process
)
.
assertEqual
(
"
com.example.third1
"
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
uri
)
.
assertEqual
(
""
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
expect
(
data
.
moduleName
)
.
assertEqual
(
"entry"
);
expect
(
data
.
type
)
.
assertEqual
(
1
);
expect
(
data
.
type
)
.
assertEqual
(
1
);
...
@@ -308,7 +308,7 @@ export default function GetabilityInfo() {
...
@@ -308,7 +308,7 @@ export default function GetabilityInfo() {
expect
(
info
.
name
)
.
assertEqual
(
"com.example.third1"
);
expect
(
info
.
name
)
.
assertEqual
(
"com.example.third1"
);
expect
(
info
.
codePath
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.third1"
);
expect
(
info
.
codePath
)
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.third1"
);
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
info
.
accessTokenId
>
0
)
.
assertTrue
();
expect
(
info
.
description
)
.
assertEqual
(
"
$string
:
mainabilit
y_description"
);
expect
(
info
.
description
)
.
assertEqual
(
"
$string
:
entr
y_description"
);
expect
(
info
.
descriptionId
>
0
)
.
assertTrue
();
expect
(
info
.
descriptionId
>
0
)
.
assertTrue
();
expect
(
info
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
info
.
icon
)
.
assertEqual
(
"
$media
:icon"
);
expect
(
info
.
iconId
>
0
)
.
assertTrue
();
expect
(
info
.
iconId
>
0
)
.
assertTrue
();
...
@@ -317,7 +317,7 @@ export default function GetabilityInfo() {
...
@@ -317,7 +317,7 @@ export default function GetabilityInfo() {
expect
(
info
.
systemApp
)
.
assertEqual
(
false
);
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
(
"/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
supportedModes
)
.
assertEqual
(
0
);
expect
(
info
.
process
)
.
assertEqual
(
""
);
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
[
0
])
.
assertEqual
(
"/data/app/el1/bundle/public/com.example.third1/com.example.third1.entry"
);
expect
(
JSON
.
stringify
(
info
.
metaData
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metaData
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
expect
(
JSON
.
stringify
(
info
.
metadata
))
.
assertEqual
(
"{}"
);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getAllApplicationInfoJsunit.test.ets
浏览文件 @
bb9e09ac
...
@@ -356,7 +356,7 @@ export default function getAllApplicationBundleTest() {
...
@@ -356,7 +356,7 @@ export default function getAllApplicationBundleTest() {
console.info(msg + JSON.stringify(data[i]));
console.info(msg + JSON.stringify(data[i]));
expect(data[i].name).assertEqual('com.open.harmony.packagemag');
expect(data[i].name).assertEqual('com.open.harmony.packagemag');
expect(data[i].codePath).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag');
expect(data[i].codePath).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag');
expect(data[i].description).assertEqual('$string:
mainabilit
y_description');
expect(data[i].description).assertEqual('$string:
entr
y_description');
if (data[i].descriptionId !== 0) {
if (data[i].descriptionId !== 0) {
expect(data[i].descriptionId > 0).assertEqual(true);
expect(data[i].descriptionId > 0).assertEqual(true);
}
}
...
@@ -372,7 +372,7 @@ export default function getAllApplicationBundleTest() {
...
@@ -372,7 +372,7 @@ export default function getAllApplicationBundleTest() {
};
};
expect(data[i].systemApp).assertEqual(true);
expect(data[i].systemApp).assertEqual(true);
expect(data[i].supportedModes).assertEqual(0);
expect(data[i].supportedModes).assertEqual(0);
expect(data[i].process).assertEqual(
""
);
expect(data[i].process).assertEqual(
'com.open.harmony.packagemag'
);
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
'/com.open.harmony.packagemag');
'/com.open.harmony.packagemag');
expect(data[i].enabled).assertEqual(true);
expect(data[i].enabled).assertEqual(true);
...
@@ -391,7 +391,7 @@ export default function getAllApplicationBundleTest() {
...
@@ -391,7 +391,7 @@ export default function getAllApplicationBundleTest() {
expect(data.name).assertEqual(BUNDLE_OTHER);
expect(data.name).assertEqual(BUNDLE_OTHER);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_OTHER);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_OTHER);
expect(data.accessTokenId).assertLarger(0);
expect(data.accessTokenId).assertLarger(0);
expect(data.description).assertEqual('$string:
mainabilit
y_description');
expect(data.description).assertEqual('$string:
entr
y_description');
expect(data.descriptionId).assertLarger(0);
expect(data.descriptionId).assertLarger(0);
expect(data.icon).assertEqual('$media:icon');
expect(data.icon).assertEqual('$media:icon');
expect(data.iconId).assertLarger(0);
expect(data.iconId).assertLarger(0);
...
@@ -399,7 +399,7 @@ export default function getAllApplicationBundleTest() {
...
@@ -399,7 +399,7 @@ export default function getAllApplicationBundleTest() {
expect(data.labelId).assertLarger(0);
expect(data.labelId).assertLarger(0);
expect(data.systemApp).assertFalse();
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(
""
);
expect(data.process).assertEqual(
BUNDLE_OTHER
);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.permissions.length).assertEqual(0);
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs.length).assertEqual(1);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets
浏览文件 @
bb9e09ac
...
@@ -449,7 +449,7 @@ export default function applicationBundleJsunit() {
...
@@ -449,7 +449,7 @@ export default function applicationBundleJsunit() {
expect(data.name).assertEqual(BUNDLE_NAME);
expect(data.name).assertEqual(BUNDLE_NAME);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_NAME);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_NAME);
expect(data.accessTokenId > 0).assertEqual(true);
expect(data.accessTokenId > 0).assertEqual(true);
expect(data.description).assertEqual('$string:
mainabilit
y_description');
expect(data.description).assertEqual('$string:
entr
y_description');
expect(data.descriptionId > 0).assertEqual(true);
expect(data.descriptionId > 0).assertEqual(true);
expect(data.icon).assertEqual('$media:icon');
expect(data.icon).assertEqual('$media:icon');
expect(data.iconId > 0).assertEqual(true);
expect(data.iconId > 0).assertEqual(true);
...
@@ -458,7 +458,7 @@ export default function applicationBundleJsunit() {
...
@@ -458,7 +458,7 @@ export default function applicationBundleJsunit() {
expect(data.labelId > 0).assertEqual(true);
expect(data.labelId > 0).assertEqual(true);
expect(data.systemApp).assertEqual(true);
expect(data.systemApp).assertEqual(true);
expect(data.supportedModes).assertEqual(0);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(
""
);
expect(data.process).assertEqual(
BUNDLE_NAME
);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.enabled).assertEqual(true);
expect(data.enabled).assertEqual(true);
expect(data.entityType).assertEqual('unspecified');
expect(data.entityType).assertEqual('unspecified');
...
@@ -476,7 +476,7 @@ export default function applicationBundleJsunit() {
...
@@ -476,7 +476,7 @@ export default function applicationBundleJsunit() {
expect(data.name).assertEqual(BUNDLE_NAME);
expect(data.name).assertEqual(BUNDLE_NAME);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_NAME);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_NAME);
expect(data.accessTokenId).assertLarger(0);
expect(data.accessTokenId).assertLarger(0);
expect(data.description).assertEqual('$string:
mainabilit
y_description');
expect(data.description).assertEqual('$string:
entr
y_description');
expect(data.descriptionId).assertLarger(0);
expect(data.descriptionId).assertLarger(0);
expect(data.icon).assertEqual('$media:icon');
expect(data.icon).assertEqual('$media:icon');
expect(data.iconId).assertLarger(0);
expect(data.iconId).assertLarger(0);
...
@@ -484,7 +484,7 @@ export default function applicationBundleJsunit() {
...
@@ -484,7 +484,7 @@ export default function applicationBundleJsunit() {
expect(data.labelId).assertLarger(0);
expect(data.labelId).assertLarger(0);
expect(data.systemApp).assertTrue();
expect(data.systemApp).assertTrue();
expect(data.supportedModes).assertEqual(0);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(
""
);
expect(data.process).assertEqual(
BUNDLE_NAME
);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_NAME + '/' + BUNDLE_NAME);
expect(data.permissions.length).assertEqual(0);
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs.length).assertEqual(1);
...
@@ -507,7 +507,7 @@ export default function applicationBundleJsunit() {
...
@@ -507,7 +507,7 @@ export default function applicationBundleJsunit() {
expect(data.name).assertEqual(BUNDLE_OTHER);
expect(data.name).assertEqual(BUNDLE_OTHER);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_OTHER);
expect(data.codePath).assertEqual(PATH + '/' + BUNDLE_OTHER);
expect(data.accessTokenId).assertLarger(0);
expect(data.accessTokenId).assertLarger(0);
expect(data.description).assertEqual('$string:
mainabilit
y_description');
expect(data.description).assertEqual('$string:
entr
y_description');
expect(data.descriptionId).assertLarger(0);
expect(data.descriptionId).assertLarger(0);
expect(data.icon).assertEqual('$media:icon');
expect(data.icon).assertEqual('$media:icon');
expect(data.iconId).assertLarger(0);
expect(data.iconId).assertLarger(0);
...
@@ -515,7 +515,7 @@ export default function applicationBundleJsunit() {
...
@@ -515,7 +515,7 @@ export default function applicationBundleJsunit() {
expect(data.labelId).assertLarger(0);
expect(data.labelId).assertLarger(0);
expect(data.systemApp).assertFalse();
expect(data.systemApp).assertFalse();
expect(data.supportedModes).assertEqual(0);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual(
""
);
expect(data.process).assertEqual(
BUNDLE_OTHER
);
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.entryDir).assertEqual(PATH + '/' + BUNDLE_OTHER + '/' + BUNDLE_OTHER + '.entry');
expect(data.permissions.length).assertEqual(0);
expect(data.permissions.length).assertEqual(0);
expect(data.moduleSourceDirs.length).assertEqual(1);
expect(data.moduleSourceDirs.length).assertEqual(1);
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getBundleArchiveInfo.test.ets
浏览文件 @
bb9e09ac
...
@@ -30,6 +30,7 @@ const NAME3 = "com.example.myapplication4"
...
@@ -30,6 +30,7 @@ const NAME3 = "com.example.myapplication4"
const NAME4 = "com.example.myapplication5"
const NAME4 = "com.example.myapplication5"
const NAME5 = "com.example.myapplication6"
const NAME5 = "com.example.myapplication6"
const DESCRIPTION = "$string:mainability_description"
const DESCRIPTION = "$string:mainability_description"
const APPLICATION_DESCRIPTION = "$string:entry_description"
export default function getBundleArchiveInfo() {
export default function getBundleArchiveInfo() {
...
@@ -47,7 +48,7 @@ export default function getBundleArchiveInfo() {
...
@@ -47,7 +48,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -69,7 +70,7 @@ export default function getBundleArchiveInfo() {
...
@@ -69,7 +70,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -91,7 +92,7 @@ export default function getBundleArchiveInfo() {
...
@@ -91,7 +92,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -149,7 +150,7 @@ export default function getBundleArchiveInfo() {
...
@@ -149,7 +150,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -186,7 +187,7 @@ export default function getBundleArchiveInfo() {
...
@@ -186,7 +187,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -210,7 +211,7 @@ export default function getBundleArchiveInfo() {
...
@@ -210,7 +211,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionCode).assertEqual(1)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -275,7 +276,7 @@ export default function getBundleArchiveInfo() {
...
@@ -275,7 +276,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
@@ -313,7 +314,7 @@ export default function getBundleArchiveInfo() {
...
@@ -313,7 +314,7 @@ export default function getBundleArchiveInfo() {
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.versionName).assertEqual("1.0")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.description).assertEqual(DESCRIPTION)
expect(datainfo.appInfo.description).assertEqual(
APPLICATION_
DESCRIPTION)
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.icon).assertEqual("$media:icon")
expect(datainfo.appInfo.iconId >= 0).assertTrue()
expect(datainfo.appInfo.iconId >= 0).assertTrue()
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
{
{
"name"
:
"TestAbility_label"
,
"name"
:
"TestAbility_label"
,
"value"
:
"label"
"value"
:
"label"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
bb9e09ac
...
@@ -30,6 +30,7 @@ const DIR1 = "/data/app/el1/bundle/public/com.example.myapplication1/com.example
...
@@ -30,6 +30,7 @@ const DIR1 = "/data/app/el1/bundle/public/com.example.myapplication1/com.example
const
DIR2
=
"
/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication2
"
const
DIR2
=
"
/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication2
"
const
DIR3
=
"
/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication1
"
const
DIR3
=
"
/data/app/el1/bundle/public/com.example.myapplication2/com.example.myapplication1
"
const
DESCRIPTION
=
"
$string:mainability_description
"
const
DESCRIPTION
=
"
$string:mainability_description
"
const
APPLICATION_DESCRIPTION
=
"
$string:entry_description
"
let
userId
=
0
;
let
userId
=
0
;
describe
(
'
ActsBundleManagerTest
'
,
function
()
{
describe
(
'
ActsBundleManagerTest
'
,
function
()
{
...
@@ -66,7 +67,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -66,7 +67,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
type
).
assertEqual
(
""
);
expect
(
datainfo
.
type
).
assertEqual
(
""
);
expect
(
datainfo
.
cpuAbi
).
assertEqual
(
""
);
expect
(
datainfo
.
cpuAbi
).
assertEqual
(
""
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -83,7 +84,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -83,7 +84,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
reqPermissionDetails
[
0
].
usedScene
.
when
).
assertEqual
(
"
always
"
);
expect
(
datainfo
.
reqPermissionDetails
[
0
].
usedScene
.
when
).
assertEqual
(
"
always
"
);
expect
(
datainfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
isCompressNativeLibs
).
assertEqual
(
fals
e
);
expect
(
datainfo
.
isCompressNativeLibs
).
assertEqual
(
tru
e
);
for
(
let
s
=
0
;
s
<
datainfo
.
hapModuleInfos
.
length
;
s
++
)
{
for
(
let
s
=
0
;
s
<
datainfo
.
hapModuleInfos
.
length
;
s
++
)
{
expect
(
datainfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -129,7 +130,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -129,7 +130,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
type
).
assertEqual
(
""
);
expect
(
datainfo
.
type
).
assertEqual
(
""
);
expect
(
datainfo
.
cpuAbi
).
assertEqual
(
""
);
expect
(
datainfo
.
cpuAbi
).
assertEqual
(
""
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -146,7 +147,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -146,7 +147,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
reqPermissionDetails
[
0
].
usedScene
.
when
).
assertEqual
(
"
always
"
);
expect
(
datainfo
.
reqPermissionDetails
[
0
].
usedScene
.
when
).
assertEqual
(
"
always
"
);
expect
(
datainfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
datainfo
.
isCompressNativeLibs
).
assertEqual
(
fals
e
);
expect
(
datainfo
.
isCompressNativeLibs
).
assertEqual
(
tru
e
);
for
(
let
s
=
0
;
s
<
datainfo
.
hapModuleInfos
.
length
;
s
++
)
{
for
(
let
s
=
0
;
s
<
datainfo
.
hapModuleInfos
.
length
;
s
++
)
{
expect
(
datainfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -176,7 +177,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -176,7 +177,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -201,7 +202,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -201,7 +202,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -239,7 +240,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -239,7 +240,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -283,7 +284,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -283,7 +284,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
extensionAbilityInfo
.
length
).
assertEqual
(
0
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -388,7 +389,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -388,7 +389,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -415,7 +416,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -415,7 +416,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
versionName
).
assertLarger
(
0
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -482,7 +483,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -482,7 +483,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
versionName
).
assertLarger
(
0
);
expect
(
dataInfo
.
versionName
).
assertLarger
(
0
);
expect
(
dataInfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
dataInfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
dataInfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
dataInfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
dataInfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
dataInfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
dataInfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -495,7 +496,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -495,7 +496,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
dataInfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
dataInfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
isCompressNativeLibs
).
assertEqual
(
fals
e
);
expect
(
dataInfo
.
isCompressNativeLibs
).
assertEqual
(
tru
e
);
for
(
let
s
=
0
;
s
<
dataInfo
.
hapModuleInfos
.
length
;
s
++
)
{
for
(
let
s
=
0
;
s
<
dataInfo
.
hapModuleInfos
.
length
;
s
++
)
{
expect
(
dataInfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -531,7 +532,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -531,7 +532,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
versionName
).
assertLarger
(
0
);
expect
(
dataInfo
.
versionName
).
assertLarger
(
0
);
expect
(
dataInfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
entryModuleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
dataInfo
.
appInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
dataInfo
.
appInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
dataInfo
.
appInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
dataInfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
dataInfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
dataInfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
dataInfo
.
appInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -544,7 +545,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -544,7 +545,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
dataInfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
dataInfo
.
reqPermissionDetails
.
length
).
assertEqual
(
0
);
expect
(
dataInfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
compatibleVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
targetVersion
).
assertEqual
(
5
);
expect
(
dataInfo
.
isCompressNativeLibs
).
assertEqual
(
fals
e
);
expect
(
dataInfo
.
isCompressNativeLibs
).
assertEqual
(
tru
e
);
for
(
let
s
=
0
;
s
<
dataInfo
.
hapModuleInfos
.
length
;
s
++
)
{
for
(
let
s
=
0
;
s
<
dataInfo
.
hapModuleInfos
.
length
;
s
++
)
{
expect
(
dataInfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
name
).
assertEqual
(
"
com.example.myapplication1
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
dataInfo
.
hapModuleInfos
[
s
].
moduleName
).
assertEqual
(
"
entry
"
);
...
@@ -620,7 +621,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -620,7 +621,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
expect
(
datainfo
[
i
].
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -672,7 +673,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -672,7 +673,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -696,7 +697,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -696,7 +697,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
...
@@ -704,7 +705,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -704,7 +705,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
labelId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
labelId
)).
assertLarger
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
""
);
expect
(
datainfo
.
process
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
...
@@ -742,7 +743,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -742,7 +743,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
...
@@ -750,7 +751,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -750,7 +751,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
labelId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
labelId
)).
assertLarger
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
""
);
expect
(
datainfo
.
process
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
enabled
).
assertEqual
(
true
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
name
).
assertEqual
(
"
metaDataName
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
expect
(
datainfo
.
metaData
.
entry
[
0
].
value
).
assertEqual
(
"
metaDataValue
"
);
...
@@ -781,7 +782,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -781,7 +782,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
...
@@ -789,7 +790,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -789,7 +790,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
();
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
();
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
""
);
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
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
...
@@ -816,7 +817,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -816,7 +817,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleSourceDirs
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
moduleInfos
.
length
).
assertLarger
(
0
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
expect
(
datainfo
.
systemApp
).
assertEqual
(
true
);
...
@@ -824,7 +825,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -824,7 +825,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
();
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
();
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
);
expect
(
datainfo
.
process
).
assertEqual
(
""
);
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
);
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
datainfo
.
moduleInfos
.
length
;
j
++
)
{
...
@@ -846,10 +847,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -846,10 +847,9 @@ describe('ActsBundleManagerTest', function () {
console
.
info
(
"
getApplicationInfo_0500 result
"
+
JSON
.
stringify
(
datainfo
));
console
.
info
(
"
getApplicationInfo_0500 result
"
+
JSON
.
stringify
(
datainfo
));
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -871,10 +871,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -871,10 +871,9 @@ describe('ActsBundleManagerTest', function () {
console
.
info
(
"
getApplicationInfo_0600 result
"
+
JSON
.
stringify
(
datainfo
));
console
.
info
(
"
getApplicationInfo_0600 result
"
+
JSON
.
stringify
(
datainfo
));
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -973,7 +972,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -973,7 +972,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
descriptionId
).
assertLarger
(
0
);
expect
(
datainfo
.
descriptionId
).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
...
@@ -1005,7 +1004,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1005,7 +1004,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
descriptionId
).
assertLarger
(
0
);
expect
(
datainfo
.
descriptionId
).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
...
@@ -1028,7 +1027,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1028,7 +1027,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
...
@@ -1066,7 +1065,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1066,7 +1065,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
typeof
datainfo
).
assertEqual
(
OBJECT
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
);
expect
(
datainfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
expect
(
parseInt
(
datainfo
.
iconId
)).
assertLarger
(
0
);
...
@@ -1095,7 +1094,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1095,7 +1094,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1142,7 +1141,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1142,7 +1141,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
expect
(
datainfo
[
i
].
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1169,7 +1168,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1169,7 +1168,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
expect
(
datainfo
[
i
].
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1196,7 +1195,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1196,7 +1195,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
name
.
length
).
assertLarger
(
0
);
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
if
(
datainfo
[
i
].
name
==
NAME1
||
datainfo
[
i
].
name
==
NAME2
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
||
datainfo
[
i
].
name
==
NAME3
||
datainfo
[
i
].
name
==
NAME4
||
datainfo
[
i
].
name
==
NAME5
)
{
expect
(
datainfo
[
i
].
description
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
expect
(
datainfo
[
i
].
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1225,7 +1224,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1225,7 +1224,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1248,7 +1247,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1248,7 +1247,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1272,7 +1271,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1272,7 +1271,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1296,7 +1295,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1296,7 +1295,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1319,7 +1318,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1319,7 +1318,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1341,7 +1340,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1341,7 +1340,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1363,7 +1362,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1363,7 +1362,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
name
.
length
).
assertLarger
(
0
);
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
if
(
data
[
i
].
name
==
NAME1
||
data
[
i
].
name
==
NAME2
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
||
data
[
i
].
name
==
NAME3
||
data
[
i
].
name
==
NAME4
||
data
[
i
].
name
==
NAME5
)
{
expect
(
data
[
i
].
appInfo
.
description
.
length
).
assertLarger
(
0
);
expect
(
data
info
[
i
].
description
.
length
>=
0
).
assertTrue
(
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
expect
(
data
[
i
].
appInfo
.
label
.
length
).
assertLarger
(
0
);
}
}
...
@@ -1405,7 +1404,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1405,7 +1404,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
STANDARD
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
STANDARD
);
expect
(
datainfo
.
permissions
[
0
]).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
datainfo
.
permissions
[
0
]).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1464,7 +1463,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1464,7 +1463,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
STANDARD
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
STANDARD
);
expect
(
datainfo
.
permissions
[
0
]).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
datainfo
.
permissions
[
0
]).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1507,7 +1506,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1507,7 +1506,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
orientation
).
assertEqual
(
1
);
expect
(
datainfo
.
orientation
).
assertEqual
(
1
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
SINGLETON
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
SINGLETON
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1548,7 +1547,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1548,7 +1547,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
orientation
).
assertEqual
(
1
);
expect
(
datainfo
.
orientation
).
assertEqual
(
1
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
SINGLETON
);
expect
(
datainfo
.
launchMode
).
assertEqual
(
demo
.
LaunchMode
.
SINGLETON
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1597,7 +1596,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1597,7 +1596,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
@@ -1662,7 +1661,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1662,7 +1661,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
moduleName
).
assertEqual
(
"
entry
"
);
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME3
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
APPLICATION_
DESCRIPTION
);
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
);
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
();
...
...
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -171,6 +171,7 @@
...
@@ -171,6 +171,7 @@
"grantMode"
:
"system_grant"
,
"grantMode"
:
"system_grant"
,
"availableScope"
:
[
"signature"
]
"availableScope"
:
[
"signature"
]
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"label"
:
"BMS_PERMISSION_MUSIC permission"
"label"
:
"BMS_PERMISSION_MUSIC permission"
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"label"
:
"BMS_PERMISSION_CAMERA permission"
"label"
:
"BMS_PERMISSION_CAMERA permission"
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -102,6 +102,7 @@
...
@@ -102,6 +102,7 @@
"value"
:
"metaDataValue"
,
"value"
:
"metaDataValue"
,
"extra"
:
"$string:app_name"
"extra"
:
"$string:app_name"
}]
}]
}
},
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"description"
:
"BMS_PERMISSION_WECHAT permission in detail"
,
"description"
:
"BMS_PERMISSION_WECHAT permission in detail"
,
"label"
:
"BMS_PERMISSION_WECHAT permission"
"label"
:
"BMS_PERMISSION_WECHAT permission"
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"label"
:
"BMS_PERMISSION_MUSIC permission"
"label"
:
"BMS_PERMISSION_MUSIC permission"
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json
浏览文件 @
bb9e09ac
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"label"
:
"BMS_PERMISSION_CAMERA permission"
"label"
:
"BMS_PERMISSION_CAMERA permission"
}
}
]
],
"description"
:
"$string:entry_description"
}
}
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/js/resources/base/element/string.json
浏览文件 @
bb9e09ac
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
"value"
:
"JS_Phone_Empty Feature Ability"
},
{
"name"
:
"entry_description"
,
"value"
:
"entry_description"
}
}
]
]
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录