Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0b8caed8
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看板
未验证
提交
0b8caed8
编写于
8月 01, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4748 hilog日志级别枚举变更适配
Merge pull request !4748 from chenxuihui/master
上级
9d9d4ba8
cb5f15f6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
hiviewdfx/hiappeventtest/hiappeventjstest/Test.json
hiviewdfx/hiappeventtest/hiappeventjstest/Test.json
+2
-2
hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json
...wdfx/hiappeventtest/hiappeventjstest/src/main/config.json
+2
-2
hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
...dfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
+9
-9
未找到文件。
hiviewdfx/hiappeventtest/hiappeventjstest/Test.json
浏览文件 @
0b8caed8
...
...
@@ -4,8 +4,8 @@
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"270000"
,
"shell-timeout"
:
"270000"
,
"bundle-name"
:
"ohos.acts.hiviewdfx.hi
log
.function"
,
"package-name"
:
"ohos.acts.hiviewdfx.hi
log
.function"
"bundle-name"
:
"ohos.acts.hiviewdfx.hi
appevent
.function"
,
"package-name"
:
"ohos.acts.hiviewdfx.hi
appevent
.function"
},
"kits"
:
[
{
...
...
hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json
浏览文件 @
0b8caed8
{
"app"
:
{
"bundleName"
:
"ohos.acts.hiviewdfx.hi
log
.function"
,
"bundleName"
:
"ohos.acts.hiviewdfx.hi
appevent
.function"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
...
...
@@ -13,7 +13,7 @@
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.hiviewdfx.hi
log
.function"
,
"package"
:
"ohos.acts.hiviewdfx.hi
appevent
.function"
,
"name"
:
".entry"
,
"deviceType"
:
[
"phone"
...
...
hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js
浏览文件 @
0b8caed8
...
...
@@ -119,7 +119,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi06
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi06 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
3
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
DEBUG
);
expect
(
res
).
assertEqual
(
false
);
console
.
info
(
'
testHilogJsApi06 end
'
);
})
...
...
@@ -131,7 +131,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi07
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi07 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
3
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
DEBUG
);
var
tag
=
""
;
for
(
var
i
=
0
;
i
<
1000
;
i
++
){
tag
+=
"
HILOGTEST
"
...
...
@@ -147,7 +147,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi08
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi08 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
""
,
3
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
""
,
hilog
.
LogLevel
.
DEBUG
);
expect
(
res
).
assertEqual
(
false
);
console
.
info
(
'
testHilogJsApi08 end
'
);
})
...
...
@@ -159,7 +159,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi09
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi09 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
6
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
ERROR
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi09 end
'
);
})
...
...
@@ -171,7 +171,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi10
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi10 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
7
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
FATAL
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi10 end
'
);
})
...
...
@@ -183,7 +183,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi11
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi11 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
4
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
INFO
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi11 end
'
);
})
...
...
@@ -195,7 +195,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi12
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi12 start
'
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
5
);
const
res
=
hilog
.
isLoggable
(
0xD001400
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
WARN
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi12 end
'
);
})
...
...
@@ -219,7 +219,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi14
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi14 start
'
);
const
res
=
hilog
.
isLoggable
(
0
,
"
HILOGTEST
"
,
5
);
const
res
=
hilog
.
isLoggable
(
0
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
WARN
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi14 end
'
);
})
...
...
@@ -231,7 +231,7 @@ describe('HilogJsTest', function () {
*/
it
(
'
testHilogJsApi15
'
,
2
,
function
()
{
console
.
info
(
'
testHilogJsApi15 start
'
);
const
res
=
hilog
.
isLoggable
(
0xFFFFFFF
,
"
HILOGTEST
"
,
5
);
const
res
=
hilog
.
isLoggable
(
0xFFFFFFF
,
"
HILOGTEST
"
,
hilog
.
LogLevel
.
WARN
);
expect
(
res
).
assertEqual
(
true
);
console
.
info
(
'
testHilogJsApi15 end
'
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录