diff --git a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js index bff63613f9083672dffd966dd6bdfef0fa34a045..d66ab9915373d59470058a28cac8c6e18f16668e 100644 --- a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js +++ b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js @@ -40,7 +40,7 @@ describe('HilogJsTest', function () { it('testHilogJsApi01', 2, function () { console.info('testHilogJsApi01 start'); try{ - hilog.debug(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0100']) + hilog.debug(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0200']) + hilog.error(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0300']) + hilog.fatal(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0400']) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0500']) + hilog.warn(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs1800']) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}f", [2.1]) + hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}d", [65535]) + hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["hilog info"]) + hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}d", [2147483647]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["100%s%d%x%f"]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["65536"]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) - hilog.debug(0xD001400, "HILOGTEST", "username:%{public}s, password:%s.", ["username123", "password"]) + hilog.info(0x3200, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["hilog public"]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{nopublic}s", ["Hilogtest"]) + hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) - hilog.info(0xD001400, "HILOGTEST", "username:%{public}s, password:%s.", ["username123", "password"]) + hilog.info(0x3200, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) + hilog.info(0x3200, "HILOGTEST", "username:%{public}s, password:%s.", ["username123", "password"]) }catch(error){ console.log(`testHilogJsApi26 got an error: ${JSON.stringify(error)}`) expect().assertFail();