提交 4235ead5 编写于 作者: C chenxuihui

modify domainid

Signed-off-by: Nchenxuihui <chenxuhui2@huawei.com>
上级 97201a1e
...@@ -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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0100']) hilog.debug(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0200']) hilog.error(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0300']) hilog.fatal(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0400']) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs0500']) hilog.warn(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ['hilogJs1800']) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}f", [2.1]) hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}d", [65535]) hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["hilog info"]) hilog.info(x3200, "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(0xD001400, "HILOGTEST", "%{public}d", [2147483647]) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["100%s%d%x%f"]) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{public}s", ["65536"]) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) hilog.info(0x3200, "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:%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(0xD001400, "HILOGTEST", "%{public}s", ["hilog public"]) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "%{nopublic}s", ["Hilogtest"]) hilog.info(0x3200, "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(0xD001400, "HILOGTEST", "username:%{public}s, password:%{private}s.", ["username", "password"]) hilog.info(0x3200, "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:%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.
先完成此消息的编辑!
想要评论请 注册