Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save karfau/1369577 to your computer and use it in GitHub Desktop.
Save karfau/1369577 to your computer and use it in GitHub Desktop.
<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