• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onCreationComplete()">
3
4	<mx:Script>
5            <![CDATA[
6                    import org.antlr.runtime.test.AllTests;
7                    import flexunit.junit.JUnitTestRunner;
8
9
10                    [Bindable]
11                    private var runner : JUnitTestRunner;
12
13                    private function onCreationComplete() : void
14                    {
15                       status.text = "Please wait running test suite...";
16
17                            runner = new JUnitTestRunner();
18                            runner.run( new AllTests(), onTestComplete );
19                    }
20
21                    private function onTestComplete() : void
22                    {
23                       status.text = "Finished running test suite.";
24
25                            fscommand( "quit" );
26                    }
27
28            ]]>
29   </mx:Script>
30
31    <mx:Label id="status" />
32
33</mx:Application>
34