workaround for IE8's stupidness, use a \n for new lines

pull/1158/merge
Peter 'Pita' Martischka 2012-11-03 17:02:28 +00:00
parent 7aae29114b
commit 3ee4fadf8a
2 changed files with 3 additions and 3 deletions

View File

@ -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){

View File

@ -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");