view bindings/as3/ext/asunit/textui/FlexRunner.as @ 735:c625f52cf9b4

* Querier -> Bridge * Added getSound to Bridge - fetched a slice of audio * Initial hooks for getSound tests - needs some buffering thought.
author mas01mj
date Wed, 15 Sep 2010 15:09:13 +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);
        }
    }
}