forked from openzoom/sdk
/
OpenZoomTestRunner.mxml
36 lines (27 loc) · 1.06 KB
/
OpenZoomTestRunner.mxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8"?>
<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/halo"
xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
minWidth="1024"
minHeight="768"
creationComplete="creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
import org.openzoom.flash.utils.UtilsSuite;
import org.openzoom.flash.descriptors.DescriptorSuite;
private var flexUnitCore:FlexUnitCore;
private function creationCompleteHandler(event:Event):void
{
flexUnitCore = new FlexUnitCore()
flexUnitCore.addListener(new UIListener(testRunner))
flexUnitCore.run(DescriptorSuite, UtilsSuite)
}
]]>
</fx:Script>
<flexUnitUIRunner:TestRunnerBase id="testRunner" width="100%" height="100%" />
</s:Application>