Skip to content

Commit

Permalink
Merge pull request #14 from DoclerLabs/develop
Browse files Browse the repository at this point in the history
prepare 0.29.0
  • Loading branch information
aliokan authored Sep 2, 2017
2 parents afa0dd0 + c46d5ed commit ecc4042
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions test/MainLogTest.hx
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
package;

import hex.HexLogSuite;
import hex.unittest.runner.ExMachinaUnitCore;
import hex.unittest.notifier.TraceNotifier;

#if js
import hex.unittest.notifier.ConsoleNotifier;
#elseif flash
import flash.Lib;
#end

class MainLogTest
{
Expand All @@ -16,14 +10,15 @@ class MainLogTest
var emu = new ExMachinaUnitCore();

#if flash
emu.addListener( new TraceNotifier( Lib.current.loaderInfo, false, true ) );
#elseif js
emu.addListener( new ConsoleNotifier( false ) );
emu.addListener( new hex.unittest.notifier.TraceNotifier( flash.Lib.current.loaderInfo, false, true ) );
#elseif (php && haxe_ver < 4.0)
emu.addListener( new hex.unittest.notifier.TraceNotifier( ) );
#else
emu.addListener( new TraceNotifier( false ) );
emu.addListener( new hex.unittest.notifier.ConsoleNotifier( ) );
#end
emu.addListener( new hex.unittest.notifier.ExitingNotifier( ) );

emu.addTest( hex.HexLogSuite );
emu.addTest( HexLogSuite );
emu.run();
}
}
}

0 comments on commit ecc4042

Please sign in to comment.