Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fed4d159
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看板
未验证
提交
fed4d159
编写于
2月 07, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 07, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1801 bms xts fix
Merge pull request !1801 from SoftSquirrel/master
上级
7d51a07a
5b477030
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
65 addition
and
21 deletion
+65
-21
appexecfwk/bundle_standard/bundlemanager/actsbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
...sbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
+5
-1
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageruninstall/entry/src/main/js/test/ExampleJsunit.test.js
...geruninstall/entry/src/main/js/test/ExampleJsunit.test.js
+60
-20
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
浏览文件 @
fed4d159
...
@@ -244,7 +244,11 @@ describe('ActsBmsKitTest', function () {
...
@@ -244,7 +244,11 @@ describe('ActsBmsKitTest', function () {
expect
(
data
[
i
].
lastLaunchTime
).
assertLarger
(
0
);
expect
(
data
[
i
].
lastLaunchTime
).
assertLarger
(
0
);
console
.
debug
(
'
=============isRemoved==============
'
+
JSON
.
stringify
(
data
[
i
].
isRemoved
));
console
.
debug
(
'
=============isRemoved==============
'
+
JSON
.
stringify
(
data
[
i
].
isRemoved
));
expect
(
data
[
i
].
isRemoved
).
assertEqual
(
false
);
expect
(
data
[
i
].
isRemoved
).
assertEqual
(
false
);
expect
(
data
[
i
].
installationFreeSupported
).
assertEqual
(
false
);
if
(
data
[
i
].
bundleName
==
'
com.ohos.launcher
'
)
{
expect
(
data
[
i
].
installationFreeSupported
).
assertTrue
();
}
else
{
expect
(
data
[
i
].
installationFreeSupported
).
assertFalse
();
}
}
}
}
}
function
checkIsExist
(
data
,
bundleName
)
{
function
checkIsExist
(
data
,
bundleName
)
{
...
...
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageruninstall/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
fed4d159
...
@@ -96,24 +96,40 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -96,24 +96,40 @@ describe('ActsBundleManagerUninstall', function () {
expect
(
err
.
code
).
assertEqual
(
ERR_CODE
);
expect
(
err
.
code
).
assertEqual
(
ERR_CODE
);
expect
(
data
.
status
).
assertEqual
(
STATUS_INSTALL_FAILURE_CONFLICT
);
expect
(
data
.
status
).
assertEqual
(
STATUS_INSTALL_FAILURE_CONFLICT
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
STATUS_INSTALL_FAILURE_CONFLICT
'
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
STATUS_INSTALL_FAILURE_CONFLICT
'
);
var
datainfo1
=
await
demo
.
getBundleInfo
(
NAME1
,
1
);
var
datainfo1
=
demo
.
getBundleInfo
(
NAME1
,
1
);
var
datainfo2
=
await
demo
.
getBundleInfo
(
NAME2
,
1
);
datainfo1
.
then
(
data
=>
{
expect
(
datainfo1
.
name
).
assertEqual
(
''
);
expect
().
assertFail
();
expect
(
datainfo2
.
name
).
assertEqual
(
''
);
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
var
datainfo2
=
demo
.
getBundleInfo
(
NAME2
,
1
);
datainfo2
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
installData
.
uninstall
(
NAME1
,
{
installData
.
uninstall
(
NAME1
,
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
var
datainfo3
=
await
demo
.
getBundleInfo
(
NAME1
,
1
);
var
datainfo3
=
demo
.
getBundleInfo
(
NAME1
,
1
);
expect
(
datainfo3
.
name
).
assertEqual
(
''
);
datainfo3
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
installData
.
uninstall
(
NAME2
,
{
installData
.
uninstall
(
NAME2
,
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
var
datainfo4
=
await
demo
.
getBundleInfo
(
NAME2
,
1
);
var
datainfo4
=
demo
.
getBundleInfo
(
NAME2
,
1
);
expect
(
datainfo4
.
name
).
assertEqual
(
''
);
datainfo4
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
done
();
done
();
})
})
})
})
...
@@ -135,33 +151,57 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -135,33 +151,57 @@ describe('ActsBundleManagerUninstall', function () {
expect
(
err
.
code
).
assertEqual
(
ERR_CODE
);
expect
(
err
.
code
).
assertEqual
(
ERR_CODE
);
expect
(
data
.
status
).
assertEqual
(
STATUS_INSTALL_FAILURE_INVALID
);
expect
(
data
.
status
).
assertEqual
(
STATUS_INSTALL_FAILURE_INVALID
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
STATUS_INSTALL_FAILURE_INVALID
'
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
STATUS_INSTALL_FAILURE_INVALID
'
);
var
datainfo1
=
await
demo
.
getBundleInfo
(
NAME3
,
1
);
var
datainfo1
=
demo
.
getBundleInfo
(
NAME3
,
1
);
expect
(
datainfo1
.
name
).
assertEqual
(
''
);
datainfo1
.
then
(
data
=>
{
var
datainfo2
=
await
demo
.
getBundleInfo
(
NAME4
,
1
);
expect
().
assertFail
();
expect
(
datainfo2
.
name
).
assertEqual
(
''
);
}).
catch
(
err
=>
{
var
datainfo3
=
await
demo
.
getBundleInfo
(
NAME5
,
1
);
expect
(
err
).
assertEqual
(
1
);
expect
(
datainfo3
.
name
).
assertEqual
(
''
);
});
var
datainfo2
=
demo
.
getBundleInfo
(
NAME4
,
1
);
datainfo2
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
var
datainfo3
=
demo
.
getBundleInfo
(
NAME5
,
1
);
datainfo3
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
installData
.
uninstall
(
NAME3
,
{
installData
.
uninstall
(
NAME3
,
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
var
datainfo4
=
await
demo
.
getBundleInfo
(
NAME3
,
1
);
var
datainfo4
=
demo
.
getBundleInfo
(
NAME3
,
1
);
expect
(
datainfo4
.
name
).
assertEqual
(
''
);
datainfo4
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
installData
.
uninstall
(
NAME4
,
{
installData
.
uninstall
(
NAME4
,
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
var
datainfo5
=
await
demo
.
getBundleInfo
(
NAME4
,
1
);
var
datainfo5
=
demo
.
getBundleInfo
(
NAME4
,
1
);
expect
(
datainfo5
.
name
).
assertEqual
(
''
);
datainfo5
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
installData
.
uninstall
(
NAME5
,
{
installData
.
uninstall
(
NAME5
,
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
var
datainfo6
=
await
demo
.
getBundleInfo
(
NAME5
,
1
);
var
datainfo6
=
demo
.
getBundleInfo
(
NAME5
,
1
);
expect
(
datainfo6
.
name
).
assertEqual
(
''
);
datainfo6
.
then
(
data
=>
{
expect
().
assertFail
();
}).
catch
(
err
=>
{
expect
(
err
).
assertEqual
(
1
);
});
done
();
done
();
});
});
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录