diff --git a/test/buddy/TravisReporter.hx b/test/buddy/TravisReporter.hx index 5de0782..e070a6f 100644 --- a/test/buddy/TravisReporter.hx +++ b/test/buddy/TravisReporter.hx @@ -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; @@ -43,4 +43,26 @@ class TravisReporter extends ConsoleReporter return res; } -} \ No newline at end of file +} + +#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 \ No newline at end of file