Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c2a9ff66
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看板
提交
c2a9ff66
编写于
4月 11, 2022
作者:
R
r00559040
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改多hap安装、卸载用例,修改代码长度,增加检查点
Signed-off-by:
N
r00559040
<
ry.renyi@huawei.com
>
上级
46c68302
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
119 addition
and
111 deletion
+119
-111
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageruninstall/entry/src/main/js/test/ExampleJsunit.test.js
...geruninstall/entry/src/main/js/test/ExampleJsunit.test.js
+111
-107
appexecfwk/bundle_standard/bundlemanager/actsbundlemgrmultipleinstalltest/entry/src/main/js/test/ExampleJsunit.test.js
...einstalltest/entry/src/main/js/test/ExampleJsunit.test.js
+8
-4
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbundlemanageruninstall/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
c2a9ff66
...
@@ -16,28 +16,28 @@
...
@@ -16,28 +16,28 @@
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
demo
from
'
@ohos.bundle
'
import
demo
from
'
@ohos.bundle
'
const
PATH
=
"
/data/
"
const
PATH
=
"
/data/
"
;
const
ERROR
=
"
error.hap
"
const
ERROR
=
"
error.hap
"
;
const
BMSJSTEST1
=
"
bmsJstest1.hap
"
const
BMSJSTEST1
=
"
bmsJstest1.hap
"
;
const
BMSJSTEST2
=
"
bmsJstest2.hap
"
const
BMSJSTEST2
=
"
bmsJstest2.hap
"
;
const
BMSJSTEST3
=
"
bmsJstest3.hap
"
const
BMSJSTEST3
=
"
bmsJstest3.hap
"
;
const
BMSJSTEST4
=
"
bmsJstest4.hap
"
const
BMSJSTEST4
=
"
bmsJstest4.hap
"
;
const
BMSJSTEST5
=
"
bmsJstest5.hap
"
const
BMSJSTEST5
=
"
bmsJstest5.hap
"
;
const
BMSJSTEST6
=
"
bmsJstest6.hap
"
const
BMSJSTEST6
=
"
bmsJstest6.hap
"
;
const
BMSJSTEST8
=
"
bmsJstest8.hap
"
const
BMSJSTEST8
=
"
bmsJstest8.hap
"
;
const
NAME1
=
"
com.example.myapplication1
"
const
NAME1
=
"
com.example.myapplication1
"
;
const
NAME2
=
"
com.example.myapplication2
"
const
NAME2
=
"
com.example.myapplication2
"
;
const
NAME3
=
"
com.example.myapplication4
"
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
THIRD1
=
"
com.example.third1
"
const
THIRD1
=
"
com.example.third1
"
;
const
LAUNCHER
=
"
com.ohos.launcher
"
const
LAUNCHER
=
"
com.ohos.launcher
"
;
const
SUCCESS
=
"
SUCCESS
"
const
SUCCESS
=
"
SUCCESS
"
;
le
t
installParam
=
{
cons
t
installParam
=
{
userId
:
100
,
userId
:
100
,
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
false
isKeepData
:
false
}
}
;
describe
(
'
ActsBundleManagerUninstall
'
,
function
()
{
describe
(
'
ActsBundleManagerUninstall
'
,
function
()
{
...
@@ -47,17 +47,17 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -47,17 +47,17 @@ describe('ActsBundleManagerUninstall', function () {
* @tc.desc Test uninstall interfaces.
* @tc.desc Test uninstall interfaces.
*/
*/
it
(
'
uninstall_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0100
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
let
installData
=
await
demo
.
getBundleInstaller
()
;
installData
.
install
([
PATH
+
BMSJSTEST1
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST1
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME1
,
0
)
await
queryInfo
(
NAME1
,
0
)
;
installData
.
uninstall
(
NAME1
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME1
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME1
,
1
)
await
queryInfo
(
NAME1
,
1
)
;
done
()
done
()
;
})
})
;
})
})
;
})
})
;
/**
/**
* @tc.number uninstall_0200
* @tc.number uninstall_0200
...
@@ -65,18 +65,18 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -65,18 +65,18 @@ describe('ActsBundleManagerUninstall', function () {
* @tc.desc Test uninstall interfaces.
* @tc.desc Test uninstall interfaces.
*/
*/
it
(
'
uninstall_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0200
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
let
installData
=
await
demo
.
getBundleInstaller
()
;
installData
.
install
([
PATH
+
BMSJSTEST2
,
PATH
+
BMSJSTEST3
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST2
,
PATH
+
BMSJSTEST3
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
let
bundleInfo
=
await
demo
.
getBundleInfo
(
NAME2
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
);
let
bundleInfo
=
await
demo
.
getBundleInfo
(
NAME2
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
);
expect
(
bundleInfo
.
appInfo
.
moduleSourceDirs
.
length
).
assertEqual
(
2
)
expect
(
bundleInfo
.
appInfo
.
moduleSourceDirs
.
length
).
assertEqual
(
2
)
;
installData
.
uninstall
(
NAME2
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME2
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME2
,
1
)
await
queryInfo
(
NAME2
,
1
)
;
done
()
done
()
;
})
})
;
})
})
;
})
})
;
/**
/**
* @tc.number uninstall_0300
* @tc.number uninstall_0300
...
@@ -84,33 +84,33 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -84,33 +84,33 @@ describe('ActsBundleManagerUninstall', function () {
* @tc.desc Test uninstall interfaces.
* @tc.desc Test uninstall interfaces.
*/
*/
it
(
'
uninstall_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0300
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
let
installData
=
await
demo
.
getBundleInstaller
()
;
installData
.
install
([
PATH
+
BMSJSTEST4
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST4
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
installData
.
install
([
PATH
+
BMSJSTEST5
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST5
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
installData
.
install
([
PATH
+
BMSJSTEST6
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST6
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME3
,
0
)
await
queryInfo
(
NAME3
,
0
)
;
await
queryInfo
(
NAME4
,
0
)
await
queryInfo
(
NAME4
,
0
)
;
await
queryInfo
(
NAME5
,
0
)
await
queryInfo
(
NAME5
,
0
)
;
installData
.
uninstall
(
NAME3
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME3
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
installData
.
uninstall
(
NAME4
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME4
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
installData
.
uninstall
(
NAME5
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME5
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME3
,
1
)
await
queryInfo
(
NAME3
,
1
)
;
await
queryInfo
(
NAME4
,
1
)
await
queryInfo
(
NAME4
,
1
)
;
await
queryInfo
(
NAME5
,
1
)
await
queryInfo
(
NAME5
,
1
)
;
done
()
done
()
;
})
})
;
})
})
;
})
})
;
})
})
;
})
})
;
})
})
;
})
})
;
/**
/**
* @tc.number uninstall_0400
* @tc.number uninstall_0400
...
@@ -120,12 +120,13 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -120,12 +120,13 @@ describe('ActsBundleManagerUninstall', function () {
it
(
'
uninstall_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0400
'
,
0
,
async
function
(
done
)
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
data
.
uninstall
(
ERROR
,
installParam
,
(
err
,
data
)
=>
{
data
.
uninstall
(
ERROR
,
installParam
,
(
err
,
data
)
=>
{
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE
)
expect
(
err
.
code
).
assertEqual
(
-
1
);
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE
"
)
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE
);
done
()
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE
"
);
})
done
();
})
});
})
});
});
/**
/**
* @tc.number uninstall_0500
* @tc.number uninstall_0500
...
@@ -135,12 +136,13 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -135,12 +136,13 @@ describe('ActsBundleManagerUninstall', function () {
it
(
'
uninstall_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0500
'
,
0
,
async
function
(
done
)
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
data
.
uninstall
(
''
,
installParam
,
(
err
,
data
)
=>
{
data
.
uninstall
(
''
,
installParam
,
(
err
,
data
)
=>
{
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE_ABORTED
)
expect
(
err
.
code
).
assertEqual
(
-
1
);
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE_ABORTED
"
)
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE
);
done
()
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE
"
);
})
done
();
})
});
})
});
});
/**
/**
* @tc.number uninstall_0600
* @tc.number uninstall_0600
...
@@ -150,12 +152,13 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -150,12 +152,13 @@ describe('ActsBundleManagerUninstall', function () {
it
(
'
uninstall_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0600
'
,
0
,
async
function
(
done
)
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
data
.
uninstall
(
LAUNCHER
,
installParam
,
(
err
,
data
)
=>
{
data
.
uninstall
(
LAUNCHER
,
installParam
,
(
err
,
data
)
=>
{
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE_CONFLICT
)
expect
(
err
.
code
).
assertEqual
(
-
1
);
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE_CONFLICT
"
)
expect
(
data
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
STATUS_UNINSTALL_FAILURE
);
done
()
expect
(
data
.
statusMessage
).
assertEqual
(
"
STATUS_UNINSTALL_FAILURE
"
);
})
done
();
})
});
})
});
});
/**
/**
* @tc.number uninstall_0700
* @tc.number uninstall_0700
...
@@ -169,15 +172,15 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -169,15 +172,15 @@ describe('ActsBundleManagerUninstall', function () {
installFlag
:
1
,
installFlag
:
1
,
isKeepData
:
true
isKeepData
:
true
},
async
(
err
,
data
)
=>
{
},
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME1
,
0
)
await
queryInfo
(
NAME1
,
0
)
;
result
.
uninstall
(
NAME1
,
installParam
,
async
(
err
,
data
)
=>
{
result
.
uninstall
(
NAME1
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
NAME1
,
1
)
await
queryInfo
(
NAME1
,
1
)
;
done
()
done
()
;
})
})
;
})
})
;
})
})
;
/**
/**
* @tc.number uninstall_0800
* @tc.number uninstall_0800
...
@@ -187,42 +190,43 @@ describe('ActsBundleManagerUninstall', function () {
...
@@ -187,42 +190,43 @@ describe('ActsBundleManagerUninstall', function () {
it
(
'
uninstall_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
uninstall_0800
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
();
let
installData
=
await
demo
.
getBundleInstaller
();
installData
.
install
([
PATH
+
BMSJSTEST8
],
installParam
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
BMSJSTEST8
],
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
let
bundleInfo
=
await
demo
.
getBundleInfo
(
'
com.example.third1
'
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
);
let
bundleInfo
=
await
demo
.
getBundleInfo
(
'
com.example.third1
'
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
);
expect
(
bundleInfo
.
uid
).
assertLarger
(
10000
);
expect
(
bundleInfo
.
uid
).
assertLarger
(
10000
);
installData
.
uninstall
(
THIRD1
,
installParam
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
THIRD1
,
installParam
,
async
(
err
,
data
)
=>
{
checkInstallResult
(
data
)
checkInstallResult
(
err
,
data
);
await
queryInfo
(
'
com.example.third1
'
,
1
)
await
queryInfo
(
'
com.example.third1
'
,
1
)
;
done
()
done
()
;
})
})
;
})
})
;
})
})
;
async
function
queryInfo
(
bundleName
,
assertFlag
){
async
function
queryInfo
(
bundleName
,
assertFlag
){
if
(
!
assertFlag
)
{
if
(
!
assertFlag
)
{
await
demo
.
getBundleInfo
(
bundleName
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
await
demo
.
getBundleInfo
(
bundleName
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
).
then
(
datainfo
=>
{
).
then
(
datainfo
=>
{
console
.
info
(
"
getBundleInfo result0
"
+
JSON
.
stringify
(
datainfo
))
console
.
info
(
"
getBundleInfo result0
"
+
JSON
.
stringify
(
datainfo
))
;
expect
(
datainfo
.
name
).
assertEqual
(
bundleName
)
expect
(
datainfo
.
name
).
assertEqual
(
bundleName
)
;
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
info
(
"
getBundleInfo result0
"
+
JSON
.
stringify
(
datainfo
))
console
.
info
(
"
getBundleInfo result0
"
+
JSON
.
stringify
(
datainfo
))
;
expect
(
err
).
assertFail
()
expect
(
err
).
assertFail
()
;
})
})
;
}
else
{
}
else
{
await
demo
.
getBundleInfo
(
bundleName
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
await
demo
.
getBundleInfo
(
bundleName
,
demo
.
BundleFlag
.
GET_BUNDLE_DEFAULT
).
then
(
datainfo
=>
{
).
then
(
datainfo
=>
{
console
.
info
(
"
getBundleInfo result1
"
+
JSON
.
stringify
(
datainfo
))
console
.
info
(
"
getBundleInfo result1
"
+
JSON
.
stringify
(
datainfo
))
;
expect
(
datainfo
).
assertFail
()
expect
(
datainfo
).
assertFail
()
;
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
info
(
"
getBundleInfo result1
"
+
JSON
.
stringify
(
err
))
console
.
info
(
"
getBundleInfo result1
"
+
JSON
.
stringify
(
err
))
;
expect
(
err
).
assertEqual
(
1
)
expect
(
err
).
assertEqual
(
1
)
;
})
})
;
}
}
;
}
}
;
function
checkInstallResult
(
result
)
{
function
checkInstallResult
(
err
,
result
)
{
console
.
info
(
"
install uninstall result
"
+
JSON
.
stringify
(
result
))
console
.
info
(
"
install uninstall result
"
+
JSON
.
stringify
(
result
));
expect
(
result
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
SUCCESS
)
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
result
.
statusMessage
).
assertEqual
(
SUCCESS
)
expect
(
result
.
status
).
assertEqual
(
demo
.
InstallErrorCode
.
SUCCESS
);
expect
(
result
.
statusMessage
).
assertEqual
(
SUCCESS
);
}
}
})
})
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/actsbundlemgrmultipleinstalltest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
c2a9ff66
...
@@ -304,7 +304,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
...
@@ -304,7 +304,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
0
);
await
queryInfo
(
NAME
,
0
);
installData
.
install
([
PATH
+
SIXTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
SIXTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_CONFLICT
,
"
STATUS_INSTALL_FAILURE_CONFLICT
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_CONFLICT
,
"
STATUS_INSTALL_FAILURE_CONFLICT
"
);
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
1
);
await
queryInfo
(
NAME
,
1
);
...
@@ -325,7 +326,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
...
@@ -325,7 +326,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
0
);
await
queryInfo
(
NAME
,
0
);
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
1
);
await
queryInfo
(
NAME
,
1
);
...
@@ -504,7 +506,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
...
@@ -504,7 +506,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
0
);
await
queryInfo
(
NAME
,
0
);
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
1
);
await
queryInfo
(
NAME
,
1
);
...
@@ -584,7 +587,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
...
@@ -584,7 +587,8 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
0
);
await
queryInfo
(
NAME
,
0
);
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
install
([
PATH
+
THIRTEENTH_RIGHT
],
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
STATUS_INSTALL_FAILURE_INCOMPATIBLE
,
"
STATUS_INSTALL_FAILURE_INCOMPATIBLE
"
);
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME
,
installParam1
,
async
(
err
,
data
)
=>
{
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
checkResult
(
err
,
data
,
demo
.
InstallErrorCode
.
SUCCESS
,
"
SUCCESS
"
);
await
queryInfo
(
NAME
,
1
);
await
queryInfo
(
NAME
,
1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录