From 9542f8ad1b4a41d2911568c61893d02993ea1077 Mon Sep 17 00:00:00 2001 From: chenxuihui Date: Mon, 20 Jun 2022 19:52:26 +0800 Subject: [PATCH] xts bug fix Signed-off-by: chenxuihui --- .../main/js/default/test/HiTraceChainJs.test.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hiviewdfx/hitracechainjstest/src/main/js/default/test/HiTraceChainJs.test.js b/hiviewdfx/hitracechainjstest/src/main/js/default/test/HiTraceChainJs.test.js index df4fe0c29..ecfdb65ab 100755 --- a/hiviewdfx/hitracechainjstest/src/main/js/default/test/HiTraceChainJs.test.js +++ b/hiviewdfx/hitracechainjstest/src/main/js/default/test/HiTraceChainJs.test.js @@ -95,7 +95,8 @@ describe('HiTraceJsTest', function () { expect().assertFail(); console.log(`testHitraceApi03 got an error: ${JSON.stringify(error)}`); } - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.THREAD, hiTraceChain.HiTraceTracepointType.SS, traceId, "hitrace api test."); + hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.THREAD, + hiTraceChain.HiTraceTracepointType.SS, traceId, "hitrace api test."); hiTraceChain.end(traceId); } catch (error){ console.log(`testHitraceApi03 got an error: ${JSON.stringify(error)}`); @@ -196,7 +197,8 @@ describe('HiTraceJsTest', function () { expect().assertFail(); console.log(`testHitraceApi07 got an error: ${JSON.stringify(error)}`); } - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.PROCESS, hiTraceChain.HiTraceTracepointType.CS, traceId, "hitrace test"); + hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.PROCESS, + hiTraceChain.HiTraceTracepointType.CS, traceId, "hitrace test"); hiTraceChain.end(traceId); } catch (error){ console.log(`testHitraceApi07 got an error: ${JSON.stringify(error)}`); @@ -273,7 +275,8 @@ describe('HiTraceJsTest', function () { expect().assertFail(); console.log(`testHitraceApi10 got an error: ${JSON.stringify(error)}`); } - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEVICE, hiTraceChain.HiTraceTracepointType.CR, traceId, "hitrace test"); + hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEVICE, + hiTraceChain.HiTraceTracepointType.CR,traceId, "hitrace test"); hiTraceChain.end(traceId); } catch (error) { console.log(`testHitraceApi10 got an error: ${JSON.stringify(error)}`); @@ -307,7 +310,8 @@ describe('HiTraceJsTest', function () { expect().assertFail(); console.log(`testHitraceApi11 got an error: ${JSON.stringify(error)}`); } - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEFAULT, hiTraceChain.HiTraceTracepointType.SR, traceId, "hitrace test"); + hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEFAULT, + hiTraceChain.HiTraceTracepointType.SR, traceId, "hitrace test"); hiTraceChain.end(traceId); } catch (error) { console.log(`testHitraceApi11 got an error: ${JSON.stringify(error)}`); @@ -336,7 +340,8 @@ describe('HiTraceJsTest', function () { expect().assertFail(); console.log(`testHitraceApi12 got an error: ${JSON.stringify(error)}`); } - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEVICE, hiTraceChain.HiTraceTracepointType.GENERAL, traceId, "hitrace test"); + hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.DEVICE, + hiTraceChain.HiTraceTracepointType.GENERAL, traceId, "hitrace test"); hiTraceChain.end(traceId); } catch (error) { console.log(`testHitraceApi12 got an error: ${JSON.stringify(error)}`); -- GitLab