Mercurial > hg > audiodb
view bindings/as3/ext/asunit/textui/FlexRunner.as @ 737:18974af682cf
* Tweaks to event strings for safety
* Fixed mis-firing event in Bridge
* Added a simple example
* Added packaging
author | mas01mj |
---|---|
date | Thu, 16 Sep 2010 11:39:52 +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); } } }