annotate 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
rev   line source
mas01mj@732 1 package asunit.textui {
mas01mj@732 2 import asunit.framework.TestResult;
mas01mj@732 3
mas01mj@732 4 import mx.core.Application;
mas01mj@732 5
mas01mj@732 6 /**
mas01mj@732 7 * The <code>FlexTestRunner</code> should be the base class for your
mas01mj@732 8 * test harness if you're testing a project that uses Flex components.
mas01mj@732 9 *
mas01mj@732 10 * @includeExample FlexRunnerExample.mxml
mas01mj@732 11 **/
mas01mj@732 12 public class FlexRunner extends Application {
mas01mj@732 13 protected var runner:TestRunner;
mas01mj@732 14
mas01mj@732 15 override protected function createChildren():void {
mas01mj@732 16 super.createChildren();
mas01mj@732 17 runner = new FlexTestRunner();
mas01mj@732 18 rawChildren.addChild(runner);
mas01mj@732 19 }
mas01mj@732 20
mas01mj@732 21 public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult {
mas01mj@732 22 return runner.start(testCase, testMethod, showTrace);
mas01mj@732 23 }
mas01mj@732 24 }
mas01mj@732 25 }