travis reporter log fixes
This commit is contained in:
@@ -5,12 +5,12 @@ import buddy.reporting.ConsoleReporter;
|
|||||||
import buddy.BuddySuite.TestStatus;
|
import buddy.BuddySuite.TestStatus;
|
||||||
|
|
||||||
using Lambda;
|
using Lambda;
|
||||||
|
using StringTools;
|
||||||
|
|
||||||
#if nodejs
|
#if nodejs
|
||||||
import buddy.internal.sys.NodeJs;
|
import buddy.internal.sys.NodeJs;
|
||||||
typedef Sys = NodeJs;
|
typedef Sys = NodeJs;
|
||||||
#elseif js
|
#elseif js
|
||||||
import buddy.internal.sys.Js;
|
|
||||||
typedef Sys = Js;
|
typedef Sys = Js;
|
||||||
#elseif flash
|
#elseif flash
|
||||||
import buddy.internal.sys.Flash;
|
import buddy.internal.sys.Flash;
|
||||||
@@ -43,4 +43,26 @@ class TravisReporter extends ConsoleReporter
|
|||||||
|
|
||||||
return res;
|
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