From 3ee4fadf8ab51b379205a8d8022f1679ce5e1572 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 3 Nov 2012 17:02:28 +0000 Subject: [PATCH] workaround for IE8's stupidness, use a \n for new lines --- tests/frontend/runner.js | 4 ++-- tests/frontend/travis/remote_runner.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/frontend/runner.js b/tests/frontend/runner.js index 89fe2b38..a6cf78a2 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 5e913041..f7f4ded7 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");