From cb5f15f6a482bc48a7d751158b3391490a0d3f73 Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Mon, 1 Aug 2022 17:13:28 +0800 Subject: [PATCH] update dfx xts testcase Signed-off-by: chenxuihui --- .../hiappeventtest/hiappeventjstest/Test.json | 4 ++-- .../hiappeventjstest/src/main/config.json | 4 ++-- .../src/main/js/test/HilogJsTest.js | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hiviewdfx/hiappeventtest/hiappeventjstest/Test.json b/hiviewdfx/hiappeventtest/hiappeventjstest/Test.json index 9a9e2f6e4..2d5666281 100644 --- a/hiviewdfx/hiappeventtest/hiappeventjstest/Test.json +++ b/hiviewdfx/hiappeventtest/hiappeventjstest/Test.json @@ -4,8 +4,8 @@ "type": "OHJSUnitTest", "test-timeout": "270000", "shell-timeout": "270000", - "bundle-name": "ohos.acts.hiviewdfx.hilog.function", - "package-name": "ohos.acts.hiviewdfx.hilog.function" + "bundle-name": "ohos.acts.hiviewdfx.hiappevent.function", + "package-name": "ohos.acts.hiviewdfx.hiappevent.function" }, "kits": [ { diff --git a/hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json b/hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json index ad5d56e25..07e8861ca 100644 --- a/hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json +++ b/hiviewdfx/hiappeventtest/hiappeventjstest/src/main/config.json @@ -1,6 +1,6 @@ { "app": { - "bundleName": "ohos.acts.hiviewdfx.hilog.function", + "bundleName": "ohos.acts.hiviewdfx.hiappevent.function", "vendor": "example", "version": { "code": 1, @@ -13,7 +13,7 @@ }, "deviceConfig": {}, "module": { - "package": "ohos.acts.hiviewdfx.hilog.function", + "package": "ohos.acts.hiviewdfx.hiappevent.function", "name": ".entry", "deviceType": [ "phone" diff --git a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js index ed08dbeb5..bff63613f 100644 --- a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js +++ b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js @@ -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'); }) -- GitLab