From 6750f5333e3d714b85eeb6ffb998afbd44d8a23e Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Mon, 1 Aug 2022 16:53:24 +0800 Subject: [PATCH] actshilogjs suites update Signed-off-by: chenxuihui --- .../src/main/js/default/test/HilogJsTest.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js index c2fbbfb95..68d7c4b3a 100755 --- a/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js +++ b/hiviewdfx/hilogjstest/src/main/js/default/test/HilogJsTest.js @@ -118,7 +118,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(true); console.info('testHilogJsApi06 end'); }) @@ -130,7 +130,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" @@ -146,7 +146,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(true); console.info('testHilogJsApi08 end'); }) @@ -158,7 +158,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'); }) @@ -170,7 +170,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'); }) @@ -182,7 +182,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'); }) @@ -194,7 +194,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'); }) @@ -218,7 +218,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'); }) @@ -230,7 +230,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'); }) -- GitLab