|
From: <i_t...@us...> - 2008-11-06 16:51:08
|
Revision: 205
http://asunit.svn.sourceforge.net/asunit/?rev=205&view=rev
Author: i_tyrrell
Date: 2008-11-06 16:51:04 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
Added AirRunner as a base class that extends WindowedApplication for testing classes that use the Air api.
N.B. This may not be strictly necessary.
Added Paths:
-----------
branches/ityrrell/framework/as3/asunit/textui/AirRunner.as
Added: branches/ityrrell/framework/as3/asunit/textui/AirRunner.as
===================================================================
--- branches/ityrrell/framework/as3/asunit/textui/AirRunner.as (rev 0)
+++ branches/ityrrell/framework/as3/asunit/textui/AirRunner.as 2008-11-06 16:51:04 UTC (rev 205)
@@ -0,0 +1,24 @@
+package asunit.textui {
+ import asunit.framework.TestResult;
+
+ import mx.core.WindowedApplication;
+
+ /**
+ * @author Ian
+ */
+ public class AirRunner extends WindowedApplication {
+
+ 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);
+ }
+
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|