summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-01 11:36:54 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-05 18:37:25 +0200
commit32fb61f039933a946067cff434e8a3386694a1d4 (patch)
tree69c44be966e1f16ec3bb67ba9a0bd80c07ac1053 /test
parent8f3368daeca3d5c184321e96cba60886bb7fc82f (diff)
sig-monitor: Dump stack atomically
Emitting the stack as a single string avoids its accidental split and is better when receiving monitoring events. Change-Id: I74c16f36f026b4af4a42064f694ac1f4a342cc1f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test')
-rw-r--r--test/monitoring/monitor-base.css1
-rw-r--r--test/monitoring/monitor.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/monitoring/monitor-base.css b/test/monitoring/monitor-base.css
index 63838bcc..2efeaf7f 100644
--- a/test/monitoring/monitor-base.css
+++ b/test/monitoring/monitor-base.css
@@ -168,6 +168,7 @@ body.on #params, body.on #connect, body.off #disconnect { display: none; }
.traceevent .content {
clear: both;
+ overflow-x: auto;
}
.traceevent, .x-button {
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js
index 22d71824..6ca75cc6 100644
--- a/test/monitoring/monitor.js
+++ b/test/monitoring/monitor.js
@@ -499,6 +499,7 @@ function obj2html(json) {
cls = 'key';
} else {
cls = 'string';
+ match = match.replace(/\\n/g, "\\n<br>");
}
} else if (/true|false/.test(match)) {
cls = 'boolean';