~extremepopcorn/dhlib/dhlib_ep

« back to all changes in this revision

Viewing changes to haxe/TestWrapper.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* <license>
 
2
 * This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
 
3
 * For full copyright and license information please refer to doc/license.txt.
 
4
 * </license> 
 
5
 */
 
6
 
 
7
class TestWrapper
 
8
{
 
9
        static function main()
 
10
        {
 
11
#if flash
 
12
                flash.Lib.current.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
 
13
#end
 
14
                
 
15
                var r = new haxe.unit.TestRunner();
 
16
                r.add( new TypedefArray() );
 
17
                r.add( new NoReturn() );
 
18
                r.add( new Line() );
 
19
                r.add( new EnumFields() );
 
20
                r.add( new DuckTypedef() );
 
21
                r.add( new StaticCall() );
 
22
                r.add( new CannotReconcileTertiary() );
 
23
                r.add( new InlineDerived() );
 
24
                r.add( new IntBind() );
 
25
#if flash
 
26
                r.add( new WithResource() );
 
27
                r.add( new DictionaryTest() );
 
28
                r.add( new StringObjectEnum() );
 
29
#else
 
30
                r.add( new DynamicFields() );
 
31
                //these fail to produce runnable code in Flash
 
32
                r.add( new GenericChain() );
 
33
#end
 
34
 
 
35
#if ( neko || js || FAILINGTESTS )
 
36
                r.add( new DynamicFloatMultiply() );
 
37
                r.add( new CoercionError() );
 
38
                r.add( new CtorNull() );
 
39
                r.add( new CannotReconcileSwitch() );
 
40
                r.add( new DynamicFloatMultiply() );
 
41
                r.add( new IntReconciled() );
 
42
                //apparently only neko supports extending static types, so much for the "Dynamic" ECMAScript. hrmpf!
 
43
#end
 
44
 
 
45
                var ret = r.run();
 
46
#if neko
 
47
                neko.Sys.exit( ret ? 0 : 1 );
 
48
#end
 
49
        }
 
50
}