Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3d211a97
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看板
提交
3d211a97
编写于
1月 22, 2022
作者:
R
r00559040
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts update
Signed-off-by:
N
r00559040
<
ry.renyi@huawei.com
>
上级
44b25e27
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
818 deletion
+0
-818
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsGetBackGroundModes.test.js
.../entry/src/main/js/test/ActsBmsGetBackGroundModes.test.js
+0
-516
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/List.test.js
...r/actsbmsgetinfostest/entry/src/main/js/test/List.test.js
+0
-1
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
...emanagertest/entry/src/main/js/test/ExampleJsunit.test.js
+0
-301
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/ActsBmsGetBackGroundModes.test.js
已删除
100644 → 0
浏览文件 @
44b25e27
此差异已折叠。
点击以展开。
appexecfwk/bundle_standard/bundlemanager/actsbmsgetinfostest/entry/src/main/js/test/List.test.js
浏览文件 @
3d211a97
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
require
(
'
./ActsBmsGetBackGroundModes.test.js
'
)
require
(
'
./ActsBmsFormsInfoTest.test.js
'
)
require
(
'
./ActsBmsFormsInfoTest.test.js
'
)
require
(
'
./ActsBmsPermissionChange.test.js
'
)
require
(
'
./ActsBmsPermissionChange.test.js
'
)
require
(
'
./ActsBmsQueryAbilityByWant.test.js
'
)
require
(
'
./ActsBmsQueryAbilityByWant.test.js
'
)
\ No newline at end of file
appexecfwk/bundle_standard/bundlemanager/actsbundlemanagertest/entry/src/main/js/test/ExampleJsunit.test.js
浏览文件 @
3d211a97
...
@@ -673,12 +673,9 @@ describe('ActsBundleManagerTest', function () {
...
@@ -673,12 +673,9 @@ describe('ActsBundleManagerTest', function () {
it
(
'
getBundleArchiveInfo_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
getBundleArchiveInfo_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
)
=>
{
console
.
err
(
"
install result
"
+
JSON
.
stringify
(
err
))
console
.
err
(
"
install result
"
+
JSON
.
stringify
(
data
))
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
console
.
err
(
"
getBundleArchiveInfo begin
"
)
getInfo
();
getInfo
();
});
});
async
function
getInfo
()
{
async
function
getInfo
()
{
...
@@ -2394,305 +2391,7 @@ describe('ActsBundleManagerTest', function () {
...
@@ -2394,305 +2391,7 @@ describe('ActsBundleManagerTest', function () {
}
}
})
})
/**
* @tc.number getPermissionDef_0100
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0100
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
installData
.
install
([
PATH
+
BMSJSTEST1
],
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
getInfo
();
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_CAMERA permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_CAMERA permission in detail
"
);
installData
.
uninstall
(
NAME1
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
done
();
});
});
}
})
/**
* @tc.number getPermissionDef_0200
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0200
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
installData
.
install
([
PATH
+
BMSJSTEST2
,
PATH
+
BMSJSTEST3
],
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
getInfo
();
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
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.BMS_PERMISSION_MUSIC
"
);
expect
(
infos
.
grantMode
).
assertEqual
(
1
);
expect
(
infos
.
availableScope
).
assertEqual
(
2
);
expect
(
infos
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC permission
"
);
expect
(
infos
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC permission in detail
"
);
installData
.
uninstall
(
NAME2
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
done
();
});
});
}
})
/**
* @tc.number getPermissionDef_0300
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0300
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
await
demo
.
getBundleInstaller
().
then
((
data
)
=>
{
data
.
install
([
PATH
+
BMSJSTEST4
,
PATH
+
BMSJSTEST5
,
PATH
+
BMSJSTEST6
],
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
getInfo
();
});
});
async
function
getInfo
()
{
demo
.
getPermissionDef
(
CAMERA
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
''
);
expect
(
infos
.
grantMode
).
assertEqual
(
0
);
expect
(
infos
.
availableScope
).
assertEqual
(
0
);
expect
(
infos
.
label
).
assertEqual
(
''
);
expect
(
infos
.
description
).
assertEqual
(
''
);
});
demo
.
getPermissionDef
(
MUSIC
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
''
);
expect
(
infos
.
grantMode
).
assertEqual
(
0
);
expect
(
infos
.
availableScope
).
assertEqual
(
0
);
expect
(
infos
.
label
).
assertEqual
(
''
);
expect
(
infos
.
description
).
assertEqual
(
''
);
});
demo
.
getPermissionDef
(
WECHAT
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
''
);
expect
(
infos
.
grantMode
).
assertEqual
(
0
);
expect
(
infos
.
availableScope
).
assertEqual
(
0
);
expect
(
infos
.
label
).
assertEqual
(
''
);
expect
(
infos
.
description
).
assertEqual
(
''
);
installData
.
uninstall
(
NAME3
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME4
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
(
err
,
data
)
=>
{
installData
.
uninstall
(
NAME5
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
(
err
,
data
)
=>
{
done
();
});
});
});
});
}
})
/**
* @tc.number getPermissionDef_0400
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0400
'
,
0
,
async
function
(
done
)
{
demo
.
getPermissionDef
(
''
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
""
);
expect
(
infos
.
grantMode
).
assertEqual
(
0
);
expect
(
infos
.
availableScope
).
assertEqual
(
0
);
expect
(
infos
.
label
).
assertEqual
(
""
);
expect
(
infos
.
description
).
assertEqual
(
""
);
done
();
});
})
/**
* @tc.number getPermissionDef_0500
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0500
'
,
0
,
async
function
(
done
)
{
demo
.
getPermissionDef
(
'
error
'
).
then
((
infos
)
=>
{
expect
(
infos
.
name
).
assertEqual
(
""
);
expect
(
infos
.
grantMode
).
assertEqual
(
0
);
expect
(
infos
.
availableScope
).
assertEqual
(
0
);
expect
(
infos
.
label
).
assertEqual
(
""
);
expect
(
infos
.
description
).
assertEqual
(
""
);
done
();
});
})
/**
* @tc.number getPermissionDef_0600
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0600
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
installData
.
install
([
PATH
+
BMSJSTEST1
],
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
getInfo
();
});
async
function
getInfo
()
{
await
demo
.
getPermissionDef
(
CAMERA
,
OnReceiveEvent
);
function
OnReceiveEvent
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_CAMERA permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_CAMERA permission in detail
"
);
installData
.
uninstall
(
NAME1
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
done
();
});
}
}
})
/**
* @tc.number getPermissionDef_0700
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0700
'
,
0
,
async
function
(
done
)
{
let
installData
=
await
demo
.
getBundleInstaller
()
installData
.
install
([
PATH
+
BMSJSTEST2
,
PATH
+
BMSJSTEST3
],
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
async
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
getInfo
();
});
async
function
getInfo
()
{
await
demo
.
getPermissionDef
(
CAMERA
,
OnReceiveEvent1
);
await
demo
.
getPermissionDef
(
MUSIC
,
OnReceiveEvent2
);
function
OnReceiveEvent1
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
"
com.permission.BMS_PERMISSION_CAMERA
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqua
(
2
);
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.BMS_PERMISSION_MUSIC
"
);
expect
(
data
.
grantMode
).
assertEqual
(
1
);
expect
(
data
.
availableScope
).
assertEqual
(
2
);
expect
(
data
.
label
).
assertEqual
(
"
BMS_PERMISSION_MUSIC permission
"
);
expect
(
data
.
description
).
assertEqual
(
"
BMS_PERMISSION_MUSIC permission in detail
"
);
installData
.
uninstall
(
NAME2
,
{
userId
:
0
,
installFlag
:
0
,
isKeepData
:
false
},
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
.
status
).
assertEqual
(
0
);
expect
(
data
.
statusMessage
).
assertEqual
(
'
SUCCESS
'
);
done
();
});
}
}
})
/**
* @tc.number getPermissionDef_0800
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0800
'
,
0
,
async
function
(
done
)
{
await
demo
.
getPermissionDef
(
''
,
OnReceiveEvent
);
function
OnReceiveEvent
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
""
);
expect
(
data
.
availableScope
).
assertEqual
(
0
);
expect
(
data
.
grantMode
).
assertEqual
(
0
);
expect
(
data
.
label
).
assertEqual
(
""
);
expect
(
data
.
description
).
assertEqual
(
""
);
done
();
}
})
/**
* @tc.number getPermissionDef_0900
* @tc.name BUNDLE::getPermissionDef
* @tc.desc Test getPermissionDef interfaces.
*/
it
(
'
getPermissionDef_0900
'
,
0
,
async
function
(
done
)
{
await
demo
.
getPermissionDef
(
'
error
'
,
OnReceiveEvent
);
function
OnReceiveEvent
(
err
,
data
)
{
expect
(
data
.
name
).
assertEqual
(
""
);
expect
(
data
.
availableScope
).
assertEqual
(
0
);
expect
(
data
.
grantMode
).
assertEqual
(
0
);
expect
(
data
.
label
).
assertEqual
(
""
);
expect
(
data
.
description
).
assertEqual
(
""
);
done
();
}
})
/**
/**
* @tc.number install_0100
* @tc.number install_0100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录