Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c40d5a45
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c40d5a45
编写于
11月 08, 2021
作者:
Z
zhaoyuan17
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Bms xts update
Signed-off-by:
N
zhaoyuan17
<
zhaoyuan17@huawei.com
>
上级
ddc51328
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
106 addition
and
106 deletion
+106
-106
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
...emanagertest/entry/src/main/js/test/ExampleJsunit.test.js
+106
-106
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
c40d5a45
...
@@ -83,11 +83,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -83,11 +83,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -138,11 +138,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -138,11 +138,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -194,11 +194,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -194,11 +194,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
appInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -246,11 +246,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -246,11 +246,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -312,7 +312,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -312,7 +312,7 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
length
).
assertLarger
(
0
)
expect
(
datainfo
.
length
).
assertLarger
(
0
)
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -408,7 +408,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -408,7 +408,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -465,9 +465,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -465,9 +465,9 @@ describe('ActsBundleManagerTest', function () {
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
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
process
).
assertEqual
(
""
)
expect
(
datainfo
.
process
).
assertEqual
(
""
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
...
@@ -516,7 +516,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -516,7 +516,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -567,11 +567,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -567,11 +567,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
...
@@ -622,11 +622,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -622,11 +622,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
installData
.
uninstall
(
NAME1
,
{
installData
.
uninstall
(
NAME1
,
{
...
@@ -670,11 +670,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -670,11 +670,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
installData
.
uninstall
(
NAME1
,
{
installData
.
uninstall
(
NAME1
,
{
...
@@ -719,11 +719,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -719,11 +719,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -887,11 +887,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -887,11 +887,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -991,11 +991,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -991,11 +991,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
param
:
{
param
:
{
...
@@ -1039,11 +1039,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1039,11 +1039,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
param
:
{
param
:
{
...
@@ -1156,7 +1156,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1156,7 +1156,7 @@ describe('ActsBundleManagerTest', function () {
await
demo
.
getAllApplicationInfo
(
8
,
0
,
(
error
,
datainfo
)
=>
{
await
demo
.
getAllApplicationInfo
(
8
,
0
,
(
error
,
datainfo
)
=>
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -1208,7 +1208,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1208,7 +1208,7 @@ describe('ActsBundleManagerTest', function () {
await
demo
.
getAllApplicationInfo
(
0
,
0
,
(
error
,
datainfo
)
=>
{
await
demo
.
getAllApplicationInfo
(
0
,
0
,
(
error
,
datainfo
)
=>
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -1273,7 +1273,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1273,7 +1273,7 @@ describe('ActsBundleManagerTest', function () {
console
.
info
(
'
====> getBundleInfos_09900 =====>
'
+
JSON
.
stringify
(
data
[
i
].
appInfo
.
moduleInfos
.
length
))
console
.
info
(
'
====> getBundleInfos_09900 =====>
'
+
JSON
.
stringify
(
data
[
i
].
appInfo
.
moduleInfos
.
length
))
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -1323,7 +1323,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1323,7 +1323,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -1378,9 +1378,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1378,9 +1378,9 @@ describe('ActsBundleManagerTest', function () {
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
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
process
).
assertEqual
(
""
)
expect
(
datainfo
.
process
).
assertEqual
(
""
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
enabled
).
assertEqual
(
true
)
...
@@ -1430,7 +1430,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1430,7 +1430,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1480,7 +1480,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -1532,11 +1532,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1532,11 +1532,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
...
@@ -1580,11 +1580,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1580,11 +1580,11 @@ 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
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
param
:
{
param
:
{
...
@@ -1628,11 +1628,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1628,11 +1628,11 @@ 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
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
param
:
{
param
:
{
...
@@ -1691,11 +1691,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1691,11 +1691,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -1761,11 +1761,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1761,11 +1761,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME2
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -1816,11 +1816,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1816,11 +1816,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
)
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
)
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME3
)
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME3
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
param
:
{
param
:
{
...
@@ -1876,11 +1876,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1876,11 +1876,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
)
expect
(
datainfo
.
entryModuleName
).
assertEqual
(
"
entry
"
)
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME3
)
expect
(
datainfo
.
appInfo
.
name
).
assertEqual
(
NAME3
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
}
}
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
...
@@ -1979,7 +1979,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -1979,7 +1979,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -2043,7 +2043,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2043,7 +2043,7 @@ describe('ActsBundleManagerTest', function () {
await
demo
.
getAllApplicationInfo
(
8
,
0
,
(
error
,
datainfo
)
=>
{
await
demo
.
getAllApplicationInfo
(
8
,
0
,
(
error
,
datainfo
)
=>
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -2107,7 +2107,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2107,7 +2107,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datainfo
.
length
;
i
++
)
{
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
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
expect
(
datainfo
[
i
].
icon
.
length
).
assertLarger
(
0
)
...
@@ -2172,7 +2172,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2172,7 +2172,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -2230,7 +2230,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2230,7 +2230,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -2289,7 +2289,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2289,7 +2289,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -2348,7 +2348,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2348,7 +2348,7 @@ describe('ActsBundleManagerTest', function () {
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
name
.
length
).
assertLarger
(
0
)
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
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
expect
(
data
[
i
].
appInfo
.
icon
.
length
).
assertLarger
(
0
)
...
@@ -2409,11 +2409,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2409,11 +2409,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
...
@@ -2467,11 +2467,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2467,11 +2467,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
supportedModes
).
assertEqual
(
0
)
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
...
@@ -2526,11 +2526,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2526,11 +2526,11 @@ 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
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
param
:
{
param
:
{
...
@@ -2585,11 +2585,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2585,11 +2585,11 @@ 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
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
param
:
{
param
:
{
...
@@ -2659,11 +2659,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2659,11 +2659,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -2739,11 +2739,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2739,11 +2739,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
@@ -2941,11 +2941,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2941,11 +2941,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -3018,11 +3018,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -3018,11 +3018,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -3081,11 +3081,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -3081,11 +3081,11 @@ describe('ActsBundleManagerTest', function () {
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
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
appInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
appInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
appInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
appInfo
.
supportedModes
).
assertEqual
(
0
)
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
for
(
var
j
=
0
;
j
<
datainfo
.
appInfo
.
moduleInfos
;
j
++
)
{
...
@@ -3157,11 +3157,11 @@ describe('ActsBundleManagerTest', function () {
...
@@ -3157,11 +3157,11 @@ describe('ActsBundleManagerTest', function () {
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
bundleName
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
applicationInfo
.
name
).
assertEqual
(
NAME1
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
description
).
assertEqual
(
"
$string:mainability_description
"
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
descriptionId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
icon
).
assertEqual
(
"
$media:icon
"
)
expect
(
datainfo
.
applicationInfo
.
iconId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
iconId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
label
).
assertEqual
(
"
$string:app_name
"
)
expect
(
datainfo
.
applicationInfo
.
labelId
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
labelId
>=
0
).
assertTrue
(
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
systemApp
).
assertEqual
(
false
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
supportedModes
).
assertEqual
(
0
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
expect
(
datainfo
.
applicationInfo
.
enabled
).
assertEqual
(
true
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录