Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f0ccfa40
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看板
提交
f0ccfa40
编写于
11月 18, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 18, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1110 Modify test code
Merge pull request !1110 from blackleon/update_master_1117
上级
4d94a095
3a46cc01
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
105 addition
and
39 deletion
+105
-39
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
...emanagertest/entry/src/main/js/test/ExampleJsunit.test.js
+39
-39
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json
...dlemanager/sceneProject/bmsscenefive/src/main/config.json
+11
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/config.json
...dlemanager/sceneProject/bmsscenefour/src/main/config.json
+11
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/config.json
...ndlemanager/sceneProject/bmssceneone/src/main/config.json
+11
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json
...ndlemanager/sceneProject/bmsscenesix/src/main/config.json
+11
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json
...lemanager/sceneProject/bmsscenethree/src/main/config.json
+11
-0
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json
...ndlemanager/sceneProject/bmsscenetwo/src/main/config.json
+11
-0
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
f0ccfa40
...
...
@@ -46,9 +46,9 @@ const SUCCESS = "SUCCESS"
const
DIR1
=
"
/data/accounts/account_0/applications/com.example.myapplication1/com.example.myapplication1
"
const
DIR2
=
"
/data/accounts/account_0/applications/com.example.myapplication2/com.example.myapplication2
"
const
SYSTEMDIR1
=
"
/data/accounts/account_0/applications/com.ohos.launcher/com.ohos.launcher.settings
"
const
CAMERA
=
'
com.permission.CAMERA
'
const
MUSIC
=
'
com.permission.
music
'
const
WECHAT
=
'
com.permission.
WeChat
'
const
CAMERA
=
'
com.permission.
BMS_PERMISSION_
CAMERA
'
const
MUSIC
=
'
com.permission.
BMS_PERMISSION_MUSIC
'
const
WECHAT
=
'
com.permission.
BMS_PERMISSION_WECHAT
'
const
START_ABILITY_TIMEOUT
=
3000
;
var
subscriberInfoEvent_0100
=
{
events
:
[
'
Third1_Publish_CommonEvent
'
],
...
...
@@ -3249,11 +3249,11 @@ describe('ActsBundleManagerTest', function () {
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
installData
.
uninstall
(
NAME1
,
{
param
:
{
userId
:
0
,
...
...
@@ -3289,18 +3289,18 @@ describe('ActsBundleManagerTest', function () {
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
});
demo
.
getPermissionDef
(
MUSIC
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
music
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_MUSIC
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
music
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
music
permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission in detail
"
);
installData
.
uninstall
(
NAME2
,
{
param
:
{
userId
:
0
,
...
...
@@ -3347,27 +3347,27 @@ describe('ActsBundleManagerTest', function () {
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
});
demo
.
getPermissionDef
(
MUSIC
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
music
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_MUSIC
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
music
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
music
permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission in detail
"
);
});
demo
.
getPermissionDef
(
WECHAT
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
WeChat
"
);
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_WECHAT
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
WeChat
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
WeChat
permission in detail
"
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_WECHAT
permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_WECHAT
permission in detail
"
);
installData
.
uninstall
(
NAME3
,
{
param
:
{
userId
:
0
,
...
...
@@ -3448,11 +3448,11 @@ describe('ActsBundleManagerTest', function () {
await
demo
.
getPermissionDef
(
CAMERA
,
OnReceiveEvent
);
function
OnReceiveEvent
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
installData
.
uninstall
(
NAME1
,
{
param
:
{
userId
:
0
,
...
...
@@ -3490,18 +3490,18 @@ describe('ActsBundleManagerTest', function () {
await
demo
.
getPermissionDef
(
CAMERA
,
OnReceiveEvent1
);
await
demo
.
getPermissionDef
(
MUSIC
,
OnReceiveEvent2
);
function
OnReceiveEvent1
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqua
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
}
function
OnReceiveEvent2
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
music
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_MUSIC
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
music
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
music
permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission in detail
"
);
installData
.
uninstall
(
NAME2
,
{
param
:
{
userId
:
0
,
...
...
@@ -3538,27 +3538,27 @@ describe('ActsBundleManagerTest', function () {
async
function
getInfo
()
{
await
demo
.
getPermissionDef
(
CAMERA
,
OnReceiveEvent1
);
async
function
OnReceiveEvent1
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.CAMERA
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_
CAMERA
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
CAMERA permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_
CAMERA permission in detail
"
);
await
demo
.
getPermissionDef
(
MUSIC
,
OnReceiveEvent2
);
}
async
function
OnReceiveEvent2
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
music
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_MUSIC
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
music
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
music
permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC
permission in detail
"
);
await
demo
.
getPermissionDef
(
WECHAT
,
OnReceiveEvent3
);
}
async
function
OnReceiveEvent3
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
WeChat
"
);
expect
(
data
.
name
).
assertEqual
(
"
com.permission.
BMS_PERMISSION_WECHAT
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
WeChat
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
WeChat
permission in detail
"
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_WECHAT
permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_WECHAT
permission in detail
"
);
installData
.
uninstall
(
NAME3
,
{
param
:
{
userId
:
0
,
...
...
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefive/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -57,6 +57,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_MUSIC"
,
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"label"
:
"BMS_PERMISSION_MUSIC permission"
}
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenefour/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -57,6 +57,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_CAMERA"
,
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"label"
:
"BMS_PERMISSION_CAMERA permission"
}
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmssceneone/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -57,6 +57,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_CAMERA"
,
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"label"
:
"BMS_PERMISSION_CAMERA permission"
}
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenesix/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -57,6 +57,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_WECHAT"
,
"description"
:
"BMS_PERMISSION_WECHAT permission in detail"
,
"label"
:
"BMS_PERMISSION_WECHAT permission"
}
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenethree/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -64,6 +64,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_MUSIC"
,
"description"
:
"BMS_PERMISSION_MUSIC permission in detail"
,
"label"
:
"BMS_PERMISSION_MUSIC permission"
}
]
}
}
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/src/main/config.json
浏览文件 @
f0ccfa40
...
...
@@ -57,6 +57,17 @@
"autoDesignWidth"
:
false
}
}
],
"defPermissions"
:
[
{
"availableScope"
:
[
"signature"
],
"grantMode"
:
"system_grant"
,
"name"
:
"com.permission.BMS_PERMISSION_CAMERA"
,
"description"
:
"BMS_PERMISSION_CAMERA permission in detail"
,
"label"
:
"BMS_PERMISSION_CAMERA permission"
}
]
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录