Fix color escape sequences
This commit is contained in:
parent
56d3cb3851
commit
f03f658691
1 changed files with 5 additions and 5 deletions
|
@ -7,9 +7,9 @@ var websocket = null
|
|||
var logger = (function () { // eslint-disable-line no-unused-vars
|
||||
const sep = '\n/* ### NEXT TESTCASE ############################## */'
|
||||
const color = {
|
||||
red: '\u0033[1;31m',
|
||||
green: '\u0033[1;32m',
|
||||
clear: '\u0033[0m'
|
||||
red: '\033[1;31m',
|
||||
green: '\033[1;32m',
|
||||
clear: '\033[0m'
|
||||
}
|
||||
if (utils.platform.isWindows) {
|
||||
color.red = ''
|
||||
|
@ -37,7 +37,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars
|
|||
}
|
||||
|
||||
function testcase (msg) {
|
||||
dump('/*L*/ ' + JSON.stringify(msg) + '\n')
|
||||
dump('/*L*/ ' + utils.common.quote(msg) + '\n')
|
||||
}
|
||||
|
||||
function dumpln (msg) {
|
||||
|
@ -67,7 +67,7 @@ var logger = (function () { // eslint-disable-line no-unused-vars
|
|||
} catch (e) {
|
||||
dump(e.stack || e.stacktrace || '')
|
||||
}
|
||||
error('===')
|
||||
error('================')
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue