Created
November 16, 2011 08:25
-
-
Save karfau/1369577 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
xmlns:flexui="flexunit.flexui.*" | |
xmlns:adobe="http://www.adobe.com/2009/flexUnitUIRunner" | |
minWidth="955" minHeight="600" | |
creationComplete="onCreationComplete()"> | |
<fx:Script> | |
<![CDATA[ | |
import org.flexunit.listeners.UIListener; | |
import org.flexunit.runner.FlexUnitCore; | |
import tests.MainCase; | |
private var core:FlexUnitCore; | |
public function currentRunTestSuite():Array | |
{ | |
var testsToRun:Array = new Array(); | |
testsToRun.push(tests.MainSuite); | |
return testsToRun; | |
} | |
private function onCreationComplete():void | |
{ | |
core = new FlexUnitCore(); | |
core.addListener( new UIListener( testRunnerBase ) ); | |
core.run( currentRunTestSuite() ); | |
} | |
]]> | |
</fx:Script> | |
<fx:Declarations> | |
<!-- Place non-visual elements (e.g., services, value objects) here --> | |
</fx:Declarations> | |
<adobe:TestRunnerBase id="testRunnerBase" width="100%" height="100%" /> | |
</s:Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment