forked from videojs/video-js-swf
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathAirTestRunner.mxml
More file actions
34 lines (29 loc) · 1.49 KB
/
Copy pathAirTestRunner.mxml
File metadata and controls
34 lines (29 loc) · 1.49 KB
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
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
creationComplete="runTests();"
layout="absolute">
<mx:Script>
<![CDATA[
import org.flexunit.listeners.AirCIListener;
import mx.logging.LogEventLevel;
import org.flexunit.internals.TextListener;
import org.flexunit.internals.TraceListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
import com.videojs.test.suite.VideoJSTestSuite;
public function runTests() : void {
var core : FlexUnitCore = new FlexUnitCore();
/**If you don't need graphical test results, comment out the line below and the MXML declaring
the TestRunnerBase. **/
core.addListener(new UIListener(uiListener));
core.addListener(new AirCIListener());
/**If you would like to see text output in verbose mode, umcomment either of the follow listeners **/
//core.addListener( new TraceListener() ); - For AS3 Projects
//core.addListener( TextListener.getDefaultTextListener( LogEventLevel.DEBUG ) ); - For Flex Projects
core.run(VideoJSTestSuite);
}
]]>
</mx:Script>
<flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
</mx:Application>