diff --git a/tests/frontend/runner.js b/tests/frontend/runner.js index 89fe2b38d..a6cf78a2f 100644 --- a/tests/frontend/runner.js +++ b/tests/frontend/runner.js @@ -75,9 +75,9 @@ $(function(){ //indent all lines with the given amount of space var newText = _(text.split("\n")).map(function(line){ return space + line; - }).join("\n"); + }).join("\\n"); - $console.text(oldText + newText + "\n"); + $console.text(oldText + newText + "\\n"); } runner.on('suite', function(suite){ diff --git a/tests/frontend/travis/remote_runner.js b/tests/frontend/travis/remote_runner.js index 5e9130415..f7f4ded7a 100644 --- a/tests/frontend/travis/remote_runner.js +++ b/tests/frontend/travis/remote_runner.js @@ -32,7 +32,7 @@ var sauceTestWorker = async.queue(function (testSettings, callback) { var testResult = knownConsoleText.replace(/\[red\]/g,'\x1B[31m').replace(/\[yellow\]/g,'\x1B[33m') .replace(/\[green\]/g,'\x1B[32m').replace(/\[clear\]/g, '\x1B[39m'); - testResult = testResult.split("\n").map(function(line){ + testResult = testResult.split("\\n").map(function(line){ return "[" + testSettings.browserName + (testSettings.version === "" ? '' : (" " + testSettings.version)) + "] " + line; }).join("\n");