workaround for IE8's stupidness, use a \n for new lines
parent
7aae29114b
commit
3ee4fadf8a
|
@ -75,9 +75,9 @@ $(function(){
|
||||||
//indent all lines with the given amount of space
|
//indent all lines with the given amount of space
|
||||||
var newText = _(text.split("\n")).map(function(line){
|
var newText = _(text.split("\n")).map(function(line){
|
||||||
return space + line;
|
return space + line;
|
||||||
}).join("\n");
|
}).join("\\n");
|
||||||
|
|
||||||
$console.text(oldText + newText + "\n");
|
$console.text(oldText + newText + "\\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
runner.on('suite', function(suite){
|
runner.on('suite', function(suite){
|
||||||
|
|
|
@ -32,7 +32,7 @@ var sauceTestWorker = async.queue(function (testSettings, callback) {
|
||||||
|
|
||||||
var testResult = knownConsoleText.replace(/\[red\]/g,'\x1B[31m').replace(/\[yellow\]/g,'\x1B[33m')
|
var testResult = knownConsoleText.replace(/\[red\]/g,'\x1B[31m').replace(/\[yellow\]/g,'\x1B[33m')
|
||||||
.replace(/\[green\]/g,'\x1B[32m').replace(/\[clear\]/g, '\x1B[39m');
|
.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;
|
return "[" + testSettings.browserName + (testSettings.version === "" ? '' : (" " + testSettings.version)) + "] " + line;
|
||||||
}).join("\n");
|
}).join("\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue