travis reporter log fixes

This commit is contained in:
Dima Granetchi
2014-11-16 05:53:51 +02:00
parent 33b8ca972d
commit 6d1010e59e
+23 -1
View File
@@ -5,12 +5,12 @@ import buddy.reporting.ConsoleReporter;
import buddy.BuddySuite.TestStatus;
using Lambda;
using StringTools;
#if nodejs
import buddy.internal.sys.NodeJs;
typedef Sys = NodeJs;
#elseif js
import buddy.internal.sys.Js;
typedef Sys = Js;
#elseif flash
import buddy.internal.sys.Flash;
@@ -44,3 +44,25 @@ class TravisReporter extends ConsoleReporter
return res;
}
}
#if js
class Js
{
private static function replaceSpace(s : String)
{
if (js.Browser.navigator.userAgent.indexOf("PhantomJS") >= 0) return s;
return s.replace(" ", " ");
}
public static function print(s : String)
{
trace(s);
}
public static function println(s : String)
{
trace(s);
}
}
#end