Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
2dec6955
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看板
未验证
提交
2dec6955
编写于
8月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5067 hilog 用例适配白名单需求
Merge pull request !5067 from chenxuihui/master
上级
da60f980
4235ead5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
...dfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
+18
-18
未找到文件。
hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
浏览文件 @
2dec6955
...
...
@@ -40,7 +40,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi01
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi01 start
'
);
try
{
hilog
.
debug
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0100
'
])
hilog
.
debug
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0100
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi01 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
...
...
@@ -56,7 +56,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi02
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi02 start
'
);
try
{
hilog
.
error
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0200
'
])
hilog
.
error
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0200
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi02 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
...
...
@@ -72,7 +72,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi03
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi03 start
'
);
try
{
hilog
.
fatal
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0300
'
])
hilog
.
fatal
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0300
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi03 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
...
...
@@ -88,7 +88,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi04
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi04 start
'
);
try
{
hilog
.
info
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0400
'
])
hilog
.
info
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0400
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi04 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
...
...
@@ -104,7 +104,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi05
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi04 start
'
);
try
{
hilog
.
warn
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0500
'
])
hilog
.
warn
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0500
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi05 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
...
...
@@ -244,7 +244,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi16
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi16 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs1800
'
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs1800
'
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi16 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -260,7 +260,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi17
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi17 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}f
"
,
[
2.1
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}f
"
,
[
2.1
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi17 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -276,7 +276,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi18
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi18 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
65535
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
65535
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi18 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -292,7 +292,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi19
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi19 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog info
"
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog info
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi19 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -308,7 +308,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi20
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi20 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
2147483647
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
2147483647
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi20 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -324,7 +324,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi21
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi21 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
100%s%d%x%f
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
100%s%d%x%f
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi21 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -341,7 +341,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi22
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi22 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
65536
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
65536
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi22 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -357,8 +357,8 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi23
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi23 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%s.
"
,
[
"
username123
"
,
"
password
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%s.
"
,
[
"
username123
"
,
"
password
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi23 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -374,7 +374,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi24
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi24 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog public
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog public
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi24 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -390,7 +390,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi25
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi25 start
'
);
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{nopublic}s
"
,
[
"
Hilogtest
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{nopublic}s
"
,
[
"
Hilogtest
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi25 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
@@ -406,8 +406,8 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi26
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi26 start
'
);
try
{
hilog
.
info
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
info
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%s.
"
,
[
"
username123
"
,
"
password
"
])
hilog
.
info
(
0x
32
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
info
(
0x
32
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%s.
"
,
[
"
username123
"
,
"
password
"
])
}
catch
(
error
){
console
.
log
(
`testHilogJsApi26 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录