Skip to content

Commit

Permalink
Merge pull request #39 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 a2a7e6b + ba51073 commit c5da5fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/hex/annotation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ becomes
public var injectedOne:String;
```

Expressions that are already constants wil remain unouched so `@Inject("one")` will stay the same. That also applies for combinations of expressions so `@Inject(MyConstants.NAME_ONE, "two")` changes to `@Inject("one", "two")`
Expressions that are already constants will remain untouched so `@Inject("one")` will stay the same. That also applies to combinations of expressions so `@Inject(MyConstants.NAME_ONE, "two")` changes to `@Inject("one", "two")`

Currently supported values of expressions:
- `String`
- `Bool`
- `Int`

Curretnly supported expressions that will be replaced:
Currently supported expressions that will be replaced:
- Constant in current class
- `@Meta(TEST)`
- Constant in different class
Expand Down
17 changes: 6 additions & 11 deletions test/MainAnnotationTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ package;

import hex.HexAnnotationSuite;
import hex.unittest.runner.ExMachinaUnitCore;
import hex.unittest.notifier.TraceNotifier;
#if js
import hex.unittest.notifier.ConsoleNotifier;
#elseif flash
import flash.Lib;
#end

/**
* ...
Expand All @@ -20,14 +14,15 @@ class MainAnnotationTest
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( HexAnnotationSuite );
emu.run();
}
}
}

0 comments on commit c5da5fd

Please sign in to comment.