Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4235ead5
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看板
提交
4235ead5
编写于
8月 20, 2022
作者:
C
chenxuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify domainid
Signed-off-by:
N
chenxuihui
<
chenxuhui2@huawei.com
>
上级
97201a1e
变更
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
浏览文件 @
4235ead5
...
@@ -40,7 +40,7 @@ describe('HilogJsTest', function () {
...
@@ -40,7 +40,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi01
'
,
2
,
function
()
{
it
(
'
testHilogJsApi01
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi01 start
'
);
console
.
info
(
'
testHilogJsApi01 start
'
);
try
{
try
{
hilog
.
debug
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0100
'
])
hilog
.
debug
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0100
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi01 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi01 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
expect
().
assertFail
()
...
@@ -56,7 +56,7 @@ describe('HilogJsTest', function () {
...
@@ -56,7 +56,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi02
'
,
2
,
function
()
{
it
(
'
testHilogJsApi02
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi02 start
'
);
console
.
info
(
'
testHilogJsApi02 start
'
);
try
{
try
{
hilog
.
error
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0200
'
])
hilog
.
error
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0200
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi02 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi02 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
expect
().
assertFail
()
...
@@ -72,7 +72,7 @@ describe('HilogJsTest', function () {
...
@@ -72,7 +72,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi03
'
,
2
,
function
()
{
it
(
'
testHilogJsApi03
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi03 start
'
);
console
.
info
(
'
testHilogJsApi03 start
'
);
try
{
try
{
hilog
.
fatal
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0300
'
])
hilog
.
fatal
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0300
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi03 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi03 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
expect
().
assertFail
()
...
@@ -88,7 +88,7 @@ describe('HilogJsTest', function () {
...
@@ -88,7 +88,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi04
'
,
2
,
function
()
{
it
(
'
testHilogJsApi04
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi04 start
'
);
console
.
info
(
'
testHilogJsApi04 start
'
);
try
{
try
{
hilog
.
info
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0400
'
])
hilog
.
info
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0400
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi04 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi04 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
expect
().
assertFail
()
...
@@ -104,7 +104,7 @@ describe('HilogJsTest', function () {
...
@@ -104,7 +104,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi05
'
,
2
,
function
()
{
it
(
'
testHilogJsApi05
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi04 start
'
);
console
.
info
(
'
testHilogJsApi04 start
'
);
try
{
try
{
hilog
.
warn
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0500
'
])
hilog
.
warn
(
0x
32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs0500
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi05 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi05 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
()
expect
().
assertFail
()
...
@@ -244,7 +244,7 @@ describe('HilogJsTest', function () {
...
@@ -244,7 +244,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi16
'
,
2
,
function
()
{
it
(
'
testHilogJsApi16
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi16 start
'
);
console
.
info
(
'
testHilogJsApi16 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs1800
'
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
'
hilogJs1800
'
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi16 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi16 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -260,7 +260,7 @@ describe('HilogJsTest', function () {
...
@@ -260,7 +260,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi17
'
,
2
,
function
()
{
it
(
'
testHilogJsApi17
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi17 start
'
);
console
.
info
(
'
testHilogJsApi17 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}f
"
,
[
2.1
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}f
"
,
[
2.1
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi17 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi17 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -276,7 +276,7 @@ describe('HilogJsTest', function () {
...
@@ -276,7 +276,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi18
'
,
2
,
function
()
{
it
(
'
testHilogJsApi18
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi18 start
'
);
console
.
info
(
'
testHilogJsApi18 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
65535
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
65535
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi18 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi18 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -292,7 +292,7 @@ describe('HilogJsTest', function () {
...
@@ -292,7 +292,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi19
'
,
2
,
function
()
{
it
(
'
testHilogJsApi19
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi19 start
'
);
console
.
info
(
'
testHilogJsApi19 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog info
"
])
hilog
.
info
(
x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog info
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi19 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi19 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -308,7 +308,7 @@ describe('HilogJsTest', function () {
...
@@ -308,7 +308,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi20
'
,
2
,
function
()
{
it
(
'
testHilogJsApi20
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi20 start
'
);
console
.
info
(
'
testHilogJsApi20 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
2147483647
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}d
"
,
[
2147483647
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi20 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi20 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -324,7 +324,7 @@ describe('HilogJsTest', function () {
...
@@ -324,7 +324,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi21
'
,
2
,
function
()
{
it
(
'
testHilogJsApi21
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi21 start
'
);
console
.
info
(
'
testHilogJsApi21 start
'
);
try
{
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
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi21 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi21 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -341,7 +341,7 @@ describe('HilogJsTest', function () {
...
@@ -341,7 +341,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi22
'
,
2
,
function
()
{
it
(
'
testHilogJsApi22
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi22 start
'
);
console
.
info
(
'
testHilogJsApi22 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
65536
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
65536
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi22 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi22 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -357,8 +357,8 @@ describe('HilogJsTest', function () {
...
@@ -357,8 +357,8 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi23
'
,
2
,
function
()
{
it
(
'
testHilogJsApi23
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi23 start
'
);
console
.
info
(
'
testHilogJsApi23 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
info
(
0x32
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:%s.
"
,
[
"
username123
"
,
"
password
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi23 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi23 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -374,7 +374,7 @@ describe('HilogJsTest', function () {
...
@@ -374,7 +374,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi24
'
,
2
,
function
()
{
it
(
'
testHilogJsApi24
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi24 start
'
);
console
.
info
(
'
testHilogJsApi24 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog public
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{public}s
"
,
[
"
hilog public
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi24 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi24 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -390,7 +390,7 @@ describe('HilogJsTest', function () {
...
@@ -390,7 +390,7 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi25
'
,
2
,
function
()
{
it
(
'
testHilogJsApi25
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi25 start
'
);
console
.
info
(
'
testHilogJsApi25 start
'
);
try
{
try
{
hilog
.
debug
(
0xD0014
00
,
"
HILOGTEST
"
,
"
%{nopublic}s
"
,
[
"
Hilogtest
"
])
hilog
.
info
(
0x32
00
,
"
HILOGTEST
"
,
"
%{nopublic}s
"
,
[
"
Hilogtest
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi25 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi25 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -406,8 +406,8 @@ describe('HilogJsTest', function () {
...
@@ -406,8 +406,8 @@ describe('HilogJsTest', function () {
it
(
'
testHilogJsApi26
'
,
2
,
function
()
{
it
(
'
testHilogJsApi26
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi26 start
'
);
console
.
info
(
'
testHilogJsApi26 start
'
);
try
{
try
{
hilog
.
info
(
0x
D0014
00
,
"
HILOGTEST
"
,
"
username:%{public}s, password:%{private}s.
"
,
[
"
username
"
,
"
password
"
])
hilog
.
info
(
0x
32
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:%s.
"
,
[
"
username123
"
,
"
password
"
])
}
catch
(
error
){
}
catch
(
error
){
console
.
log
(
`testHilogJsApi26 got an error:
${
JSON
.
stringify
(
error
)}
`
)
console
.
log
(
`testHilogJsApi26 got an error:
${
JSON
.
stringify
(
error
)}
`
)
expect
().
assertFail
();
expect
().
assertFail
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录