travis reporter log fixes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user