mas01mj@732: package asunit.textui { mas01mj@732: import asunit.framework.TestResult; mas01mj@732: mas01mj@732: import mx.core.Application; mas01mj@732: mas01mj@732: /** mas01mj@732: * The FlexTestRunner should be the base class for your mas01mj@732: * test harness if you're testing a project that uses Flex components. mas01mj@732: * mas01mj@732: * @includeExample FlexRunnerExample.mxml mas01mj@732: **/ mas01mj@732: public class FlexRunner extends Application { mas01mj@732: protected var runner:TestRunner; mas01mj@732: mas01mj@732: override protected function createChildren():void { mas01mj@732: super.createChildren(); mas01mj@732: runner = new FlexTestRunner(); mas01mj@732: rawChildren.addChild(runner); mas01mj@732: } mas01mj@732: mas01mj@732: public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult { mas01mj@732: return runner.start(testCase, testMethod, showTrace); mas01mj@732: } mas01mj@732: } mas01mj@732: }