view bindings/as3/ext/asunit/textui/FlexRunner.as @ 738:d9f263d95b64

Added packaged SWC
author mas01mj
date Thu, 16 Sep 2010 11:40:23 +0000
parents 3a0b9700b3d2
children
line wrap: on
line source
package asunit.textui {
    import asunit.framework.TestResult;
    
    import mx.core.Application;
    
    /**
    *   The <code>FlexTestRunner</code> should be the base class for your 
    *   test harness if you're testing a project that uses Flex components.
    *   
    *   @includeExample FlexRunnerExample.mxml
    **/
    public class FlexRunner extends Application {
        protected var runner:TestRunner;

        override protected function createChildren():void {
            super.createChildren();
            runner = new FlexTestRunner();
            rawChildren.addChild(runner);
        }
        
        public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult {
            return runner.start(testCase, testMethod, showTrace);
        }
    }
}