Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated build script to use FlexUnit 4, FLEX_HOME environment variabl…

…e, Flex ANT Tasks, etc.
  • Loading branch information...
commit d96c73337e2b854a22d0d8f060d75cc9057b113f 1 parent c99a4ea
@darronschall darronschall authored
View
3  .gitignore
@@ -15,6 +15,9 @@ profile
.settings
bin/*
bin-debug/*
+report/*
+bin-test/*
+docs/*
.flexLibProperties
#Java Noise
View
42 build/build.properties
@@ -1,48 +1,20 @@
-# -----------------------------------------------------------------
-# User-Defined Paths
-#
-# Modify these path values to reflect paths on your system
-# -----------------------------------------------------------------
-
-# The path to the flexunit.swc -- Required when trying to build/run unit
-# tests for this library. The below path assumes there's an "as3flexunitlib"
-# folder along side of this library's root folder, with the .swc file in the
-# bin subdirectory.
-flexunit.swc = ${basedir}/../as3flexunitlib/bin/as3flexunitlib.swc
-
-# The location of the Flex 2 SDK on your sytem.
-flex2sdk.bin.dir = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/bin
-flex2sdk.lib.dir = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/frameworks/libs
-
-# Note that the locale dir uses the {locale} token at the end to specify the directory
-# of language-specific files. This is replaced by the compiler with the locale defined
-# by the locale property below.
-flex2sdk.locale = en_US
-flex2sdk.locale.dir = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/frameworks/locale/{locale}
-
-#note we have to use aasdoc since the library not includes some AIR files.
-asdoc.exe = aasdoc
-compc.exe = ${flex2sdk.bin.dir}/compc.exe
-mxmlc.exe = ${flex2sdk.bin.dir}/mxmlc.exe
-
-# The debug player is necessary here because it writes trace statements to a flashlog.txt
-# file. This allows us to examine the .txt file and determine the status of unit tests
-# in an automated fashion.
-flashDebugPlayer.exe = C:/Program Files/Adobe/Flex Builder 2 Plug-in/Player/debug/SAFlashPlayer.exe
# -----------------------------------------------------------------
# File Names - DO NOT MODIFY
# -----------------------------------------------------------------
-testRunner.dir = .
-testRunner.name = CoreLibTestRunner
+test.application.name = CoreLibTestRunner
-library.name = corelib
+library.name = as3corelib
# -----------------------------------------------------------------
# Project Paths - DO NOT MODIFY
# -----------------------------------------------------------------
build.dir = ${basedir}/build
+build.libs.dir = ${basedir}/build/libs
src.dir = ${basedir}/src
-tests.dir = ${basedir}/tests
+test.src.dir = ${basedir}/tests/src
bin.dir = ${basedir}/bin
+test.bin.dir = ${basedir}/bin-test
+report.dir = ${basedir}/report
+report.html.dir = ${basedir}/report/html
docs.dir = ${basedir}/docs
View
183 build/build.xml
@@ -1,104 +1,131 @@
<?xml version="1.0"?>
-<project name="as3corelib" basedir="../" default="lib">
+<project name="as3corelib" basedir="../" default="compile">
- <!-- Define variables/paths used in this build script -->
- <property file="./build/build.properties" />
+ <!-- ============================== -->
+ <!-- Configuration -->
+ <!-- ============================== -->
- <!--
- Have you edit the properties file to make sure the paths are right oo your system?
- -->
- <target name="properties">
- <fail unless="asdoc.exe">The "asdoc.exe" property must be set in ${build.dir}/build.properties.</fail>
- <fail unless="compc.exe">The "compc.exe" property must be set in ${build.dir}/build.properties.</fail>
- <fail unless="mxmlc.exe">The "mxmlc.exe" property must be set in ${build.dir}/build.properties.</fail>
+ <property environment="env" />
+
+ <fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in the Ant build." />
+
+ <!-- Configuration -->
+ <property file="${basedir}/build/build.properties" />
+
+ <!-- Setup Flex Ant Resources -->
+ <!--property name="FLEX_HOME" location="${flex.sdk}" /-->
+ <property name="FLEX_HOME" location="${env.FLEX_HOME}" />
+ <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
+
+ <!-- ============================== -->
+ <!-- Clean and Init Targets -->
+ <!-- ============================== -->
+
+ <target name="clean" description="Removes artifacts from previous builds">
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${bin.dir}" defaultexcludes="false">
+ <include name="**/*" />
+ </fileset>
+ <fileset dir="${test.bin.dir}" defaultexcludes="false">
+ <include name="**/*" />
+ </fileset>
+ <fileset dir="${docs.dir}" defaultexcludes="false">
+ <include name="**/*" />
+ </fileset>
+ <fileset dir="${report.dir}" defaultexcludes="false">
+ <include name="**/*" />
+ </fileset>
+ </delete>
</target>
+
+ <target name="init" description="Initializes project and destination folders">
+ <echo message="Project: ${ant.project.name}" />
+ <echo message="Flex SDK: ${FLEX_HOME}" />
+
+ <!-- Create direectories -->
+ <mkdir dir="${bin.dir}" />
+ <mkdir dir="${test.bin.dir}" />
+ <mkdir dir="${docs.dir}" />
+ <mkdir dir="${report.dir}" />
+ </target>
- <!--
- Compile the unit tests for the library, placing the test runner .swf file
- in the bin directory.
- -->
- <target name="compileTests" depends="properties">
- <exec executable="${mxmlc.exe}" dir="${basedir}">
- <!-- Point to the main test runner's application mxml file -->
- <arg line="'${tests.dir}/${testRunner.dir}/${testRunner.name}.mxml'" />
-
- <!-- Use AIR configuration file -->
- <arg line="-load-config '${flex2sdk.lib.dir}/../air-config.xml'" />
-
- <!-- Place the built .swf file in the "bin" directory -->
- <arg line="-o '${bin.dir}/${testRunner.name}.swf'" />
-
- <!-- Define source directories for "src" and "tests" -->
- <arg line="-sp ${src.dir}" />
- <arg line="-sp ${tests.dir}/src" />
-
- <!-- Include the necessary framework libraries in the class path -->
- <arg line="-l '${flex2sdk.lib.dir}'" />
+ <!-- ======================================= -->
+ <!-- Unit Test Targets -->
+ <!-- ======================================= -->
+
+ <target name="compileTestRunner" depends="init" description="Compiles the test runner application.">
+
+ <!-- Compile TestRunner MXML as a SWF -->
+ <mxmlc file="${test.src.dir}/${test.application.name}.mxml"
+ output="${test.bin.dir}/${test.application.name}.swf">
- <!-- Include in the flexunit.swc in the class path -->
- <arg line="-l ${flexunit.swc}" />
+ <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
- <!-- Include locale-specific items in the path -->
- <arg line="-locale ${flex2sdk.locale}" />
- <arg line="-l '${flex2sdk.locale.dir}'" />
- </exec>
+ <source-path path-element="${src.dir}" />
+ <source-path path-element="${test.src.dir}" />
+
+ <!-- The TestRunner needs the flexunit libraries in the build/libs folder -->
+ <library-path dir="${build.libs.dir}" append="true">
+ <include name="*.swc" />
+ </library-path>
+
+ <!-- Sets java.awt.headless=true so font compilation works in headless environments -->
+ <compiler.headless-server>true</compiler.headless-server>
+ </mxmlc>
+
+ <echo message="The ${test.application.name}.swf test runner has been created in ${test.bin.dir}" />
</target>
- <!--
- Runs the unit tests for the library in the stand-alone Flash Player
- -->
- <target name="test" depends="compileTests">
- <!--
- If/When we add support for determinig the status of unit tests
- as part of the ANT build process, we need to change the spawn to
- "no" so that ANT waits until the test runner closes before
- proceeding.
- -->
- <exec executable="${flashDebugPlayer.exe}" spawn="yes">
- <arg line="${bin.dir}/${testRunner.name}.swf" />
- </exec>
+ <target name="runTestsAndReport" depends="init" description="Launches the test runner, captures results, generates test report artifacts.">
+ <!-- Run FlexUnit Ant Task to execute the unit tests and capture reporting data -->
+ <taskdef resource="flexUnitTasks.tasks" classpath="${build.libs.dir}/flexUnitTasks-4.0.0.jar" />
+ <flexunit swf="${test.bin.dir}/${test.application.name}.swf" toDir="${report.dir}"
+ haltonfailure="false" verbose="false" localTrusted="false" player="air" />
+
+ <!-- Generate html JUnit-style reports based on test results -->
+ <junitreport todir="${report.dir}">
+ <fileset dir="${report.dir}">
+ <include name="TEST-*.xml" />
+ </fileset>
+ <report format="frames" todir="${report.html.dir}" />
+ </junitreport>
+
+ <echo message="The unit test reports have been created in ${report.dir}" />
</target>
+
+ <target name="test" depends="init, compileTestRunner, runTestsAndReport" description="Compiles unit tests and generates test report artiacts." />
+
+ <!-- ======================================= -->
+ <!-- Compile and Document -->
+ <!-- ======================================= -->
- <!--
- Compile all of the classes under the "src" tree into a .swc file
- -->
- <target name="lib" depends="properties">
- <exec executable="${compc.exe}" dir="${basedir}">
- <!-- Specify the name of the output file -->
- <arg line="-o '${bin.dir}/${library.name}.swc'" />
+ <target name="compile" depends="init" description="Compile the library .swc file">
+ <compc output="${bin.dir}/${library.name}.swc"
+ debug="false" optimize="true">
- <!-- Specify the main source path as "src" -->
- <arg line="-sp ${src.dir}" />
+ <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
- <!-- Include all of the classes in the "src" tree -->
- <arg line="-is ${src.dir}" />
- </exec>
+ <source-path path-element="${src.dir}" />
+ <include-sources dir="${src.dir}" includes="*" />
+ </compc>
</target>
- <!--
- Generate ASDoc output for the library
- -->
- <target name="docs" depends="properties">
- <!-- Clean out the contents of the doc directory, without delete "docs" -->
- <!--
- <delete includeemptydirs="true">
- <fileset dir="${docs.dir}" includes="**/*" />
- </delete>
- -->
-
- <exec executable="${asdoc.exe}" spawn="no">
+ <target name="docs" depends="init" description="Generate ASDoc documentation">
+ <java jar="${FLEX_HOME}/lib/asdoc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<!-- Place the documentation in the "docs" directory -->
- <arg line="-o ${docs.dir}" />
+ <arg line="-output ${docs.dir}" />
<!-- Specify the main source path as "src" -->
- <arg line="-sp ${src.dir}" />
+ <arg line="-source-path ${src.dir}" />
<!-- Document all of the classes in the "src" tree -->
- <arg line="-ds ${src.dir} " />
+ <arg line="-doc-sources ${src.dir} " />
<!-- Include the library name in the window title -->
<arg line="-window-title 'Adobe ActionScript 3.0 Core Library - ${library.name}' "/>
- </exec>
+ </java>
+
+ <echo message="Documentation has been created in ${docs.dir}" />
</target>
</project>
View
BIN  build/libs/flexUnitTasks-4.0.0.jar
Binary file not shown
View
BIN  build/libs/flexunit-4.0.0.swc
Binary file not shown
View
BIN  build/libs/flexunit-aircilistener-4.0.0.swc
Binary file not shown
View
BIN  build/libs/flexunit-cilistener-4.0.0.swc
Binary file not shown
View
BIN  build/libs/flexunit-flexcoverlistener-4.0.0.swc
Binary file not shown
View
BIN  build/libs/flexunit-uilistener-4.0.0.swc
Binary file not shown
View
98 tests/src/AllCoreLibTests.as
@@ -0,0 +1,98 @@
+package
+{
+ import com.adobe.air.crypto.EncryptionKeyGeneratorTest;
+ import com.adobe.crypto.HMACMD5Test;
+ import com.adobe.crypto.HMACSHA1Test;
+ import com.adobe.crypto.MD5Test;
+ import com.adobe.crypto.SHA1Test;
+ import com.adobe.crypto.SHA224Test;
+ import com.adobe.crypto.SHA256Test;
+ import com.adobe.crypto.WSSEUsernameTokenTest;
+ import com.adobe.images.JPGEncoderTest;
+ import com.adobe.images.PNGEncoderTest;
+ import com.adobe.net.URITest;
+ import com.adobe.serialization.json.JSONTest;
+ import com.adobe.utils.ArrayUtilTest;
+ import com.adobe.utils.DateUtilTest;
+ import com.adobe.utils.DictionaryUtilTest;
+ import com.adobe.utils.IntUtilTest;
+ import com.adobe.utils.NumberFormatterTest;
+ import com.adobe.utils.StringUtilTest;
+ import com.adobe.utils.XMLUtilTest;
+ import com.adobe.air.filesystem.VolumeMonitorTest;
+ import com.adobe.air.filesystem.events.FileMonitorEventTest;
+ import com.adobe.air.net.events.ResourceCacheEventTest;
+ import com.adobe.protocols.events.ConnectedEventTest;
+ import com.adobe.protocols.events.DatabaseEventTest;
+ import com.adobe.protocols.events.DefinitionEventTest;
+ import com.adobe.protocols.events.DefinitionHeaderEventTest;
+ import com.adobe.protocols.events.DictionaryServerEventTest;
+ import com.adobe.protocols.events.DisconnectedEventTest;
+ import com.adobe.protocols.events.ErrorEventTest;
+ import com.adobe.protocols.events.MatchEventTest;
+ import com.adobe.protocols.events.MatchStrategiesEventTest;
+ import com.adobe.protocols.events.NoMatchEventTest;
+ import com.adobe.protocols.util.CompletedResponseEventTest;
+ import com.adobe.webapis.events.ServiceEventTest;
+ import com.adobe.air.filesystem.FileMonitorTest;
+
+ [Suite]
+ [RunWith( "org.flexunit.runners.Suite" )]
+ public class AllCoreLibTests
+ {
+ // utils
+ public var stringUtilTest:StringUtilTest;
+ public var vumberFormatterTest:NumberFormatterTest;
+ public var arrayUtilTest:ArrayUtilTest;
+ public var dateUtilTest:DateUtilTest;
+ public var intUtilTest:IntUtilTest;
+ public var xMLUtilTest:XMLUtilTest;
+ public var dictionaryUtilTest:DictionaryUtilTest;
+
+ // crypto
+ public var hMACSHA1Test:HMACSHA1Test;
+ public var hMACMD5Test:HMACMD5Test;
+ public var mD5Test:MD5Test;
+ public var sHA1Test:SHA1Test;
+ public var sHA224Test:SHA224Test;
+ public var sHA256Test:SHA256Test;
+ public var wSSEUsernameTokenTest:WSSEUsernameTokenTest;
+
+ // net
+ public var uRITest:URITest;
+
+ // serialization
+ public var jSONTest:JSONTest;
+
+ // images
+ public var jPGEncoderTest:JPGEncoderTest;
+ public var pNGEncoderTest:PNGEncoderTest;
+
+ // protocols.dict
+ public var connectedEventTest:ConnectedEventTest;
+ public var databaseEventTest:DatabaseEventTest;
+ public var definitionEventTest:DefinitionEventTest;
+ public var definitionHeaderEventTest:DefinitionHeaderEventTest;
+ public var dictionaryServerEventTest:DictionaryServerEventTest;
+ public var disconnectedEventTest:DisconnectedEventTest;
+ public var errorEventTest:ErrorEventTest;
+ public var matchEventTest:MatchEventTest;
+ public var matchStrategiesEventTest:MatchStrategiesEventTest;
+ public var noMatchEventTest:NoMatchEventTest;
+ public var completedResponseEventTest:CompletedResponseEventTest;
+
+ // webapis
+ public var serviceEventTest:ServiceEventTest;
+
+ // air.crypto
+ public var encryptionKeyGeneratorTest:EncryptionKeyGeneratorTest;
+
+ // air.filesystem
+ public var volumeMonitorTest:VolumeMonitorTest;
+ public var fileMonitorTest:FileMonitorTest;
+ public var fileMonitorEventTest:FileMonitorEventTest;
+
+ // air.net
+ public var resourceCacheEventTest:ResourceCacheEventTest;
+ }
+}
View
138 tests/src/CoreLibTestRunner.as
@@ -1,138 +0,0 @@
-/*
- Copyright (c) 2008, Adobe Systems Incorporated
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- * Neither the name of Adobe Systems Incorporated nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-import com.adobe.air.crypto.EncryptionKeyGeneratorTest;
-import com.adobe.crypto.HMACMD5Test;
-import com.adobe.crypto.HMACSHA1Test;
-import com.adobe.crypto.MD5Test;
-import com.adobe.crypto.SHA1Test;
-import com.adobe.crypto.SHA224Test;
-import com.adobe.crypto.SHA256Test;
-import com.adobe.crypto.WSSEUsernameTokenTest;
-import com.adobe.images.JPGEncoderTest;
-import com.adobe.images.PNGEncoderTest;
-import com.adobe.net.URITest;
-import com.adobe.serialization.json.JSONTest;
-import com.adobe.utils.ArrayUtilTest;
-import com.adobe.utils.DateUtilTest;
-import com.adobe.utils.DictionaryUtilTest;
-import com.adobe.utils.IntUtilTest;
-import com.adobe.utils.NumberFormatterTest;
-import com.adobe.utils.StringUtilTest;
-import com.adobe.utils.XMLUtilTest;
-
-import flexunit.framework.TestSuite;
-import com.adobe.air.filesystem.VolumeMonitorTest;
-import com.adobe.air.filesystem.events.FileMonitorEventTest;
-import com.adobe.air.net.events.ResourceCacheEventTest;
-import com.adobe.protocols.events.ConnectedEventTest;
-import com.adobe.protocols.events.DatabaseEventTest;
-import com.adobe.protocols.events.DefinitionEventTest;
-import com.adobe.protocols.events.DefinitionHeaderEventTest;
-import com.adobe.protocols.events.DictionaryServerEventTest;
-import com.adobe.protocols.events.DisconnectedEventTest;
-import com.adobe.protocols.events.ErrorEventTest;
-import com.adobe.protocols.events.MatchEventTest;
-import com.adobe.protocols.events.MatchStrategiesEventTest;
-import com.adobe.protocols.events.NoMatchEventTest;
-import com.adobe.protocols.util.CompletedResponseEventTest;
-import com.adobe.webapis.events.ServiceEventTest;
-import com.adobe.air.filesystem.FileMonitorTest;
-
-
-private function onCreationComplete():void
-{
- testRunner.test = createSuite();
- testRunner.startTest();
-}
-
-private function createSuite():TestSuite
-{
- var ts:TestSuite = new TestSuite();
-
- // utils
- ts.addTestSuite( StringUtilTest );
- ts.addTestSuite( NumberFormatterTest );
- ts.addTestSuite( ArrayUtilTest );
- ts.addTestSuite( DateUtilTest );
- ts.addTestSuite( IntUtilTest );
- ts.addTestSuite( XMLUtilTest );
- ts.addTestSuite( DictionaryUtilTest );
-
- // crypto
- ts.addTestSuite( HMACSHA1Test );
- ts.addTestSuite( HMACMD5Test );
- ts.addTestSuite( MD5Test );
- ts.addTestSuite( SHA1Test );
- ts.addTestSuite( SHA224Test );
- ts.addTestSuite( SHA256Test );
- ts.addTestSuite( WSSEUsernameTokenTest );
-
- // net
- ts.addTestSuite( URITest );
-
- // serialization
- ts.addTestSuite( JSONTest );
-
- //images
- ts.addTestSuite( JPGEncoderTest );
- ts.addTestSuite( PNGEncoderTest );
-
- //protocols.dict
- ts.addTestSuite(ConnectedEventTest);
- ts.addTestSuite(DatabaseEventTest);
- ts.addTestSuite(DefinitionEventTest);
- ts.addTestSuite(DefinitionHeaderEventTest);
- ts.addTestSuite(DictionaryServerEventTest);
- ts.addTestSuite(DisconnectedEventTest);
- ts.addTestSuite(ErrorEventTest);
- ts.addTestSuite(MatchEventTest);
- ts.addTestSuite(MatchStrategiesEventTest);
- ts.addTestSuite(NoMatchEventTest);
- ts.addTestSuite(CompletedResponseEventTest);
-
- //webapis
- ts.addTestSuite(ServiceEventTest);
-
- // air.crypto
- ts.addTestSuite( EncryptionKeyGeneratorTest );
-
- //air.filesystem
- ts.addTestSuite(VolumeMonitorTest);
- ts.addTestSuite(FileMonitorTest);
- ts.addTestSuite(FileMonitorEventTest);
-
- //air.net
- ts.addTestSuite(ResourceCacheEventTest);
-
- return ts;
-}
View
52 tests/src/CoreLibTestRunner.mxml
@@ -31,16 +31,44 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
+<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="955" minHeight="600"
+ creationComplete="onCreationComplete();">
+
+ <fx:Script>
+ <![CDATA[
+ import org.flexunit.internals.TextListener;
+ import org.flexunit.internals.TraceListener;
+ import org.flexunit.listeners.CIListener;
+ import org.flexunit.listeners.UIListener;
+ import org.flexunit.runner.FlexUnitCore;
+
+ private var core:FlexUnitCore;
+
+ private function onCreationComplete():void
+ {
+ core = 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 ) );
+
+ // Listener to support continuous integration servers
+ core.addListener( new CIListener() );
+
+ // If you would like to see text output in verbose mode,
+ // uncomment either of the follow listeners
+ //core.addListener( new TraceListener() ); // For AS3 Projects
+ //core.addListener( TextListener.getDefaultTextListener( LogEventLevel.DEBUG ) ); // For Flex Projects
+
+ core.run( AllCoreLibTests );
+ }
+ ]]>
+ </fx:Script>
-<mx:Application
- xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
- xmlns:flexunit="flexunit.flexui.*"
- creationComplete="onCreationComplete()">
-
- <mx:Script source="CoreLibTestRunner.as" />
-
- <mx:Canvas width="100%" height="100%">
- <flexunit:TestRunnerBase id="testRunner" width="100%" height="100%" />
-
- </mx:Canvas>
-</mx:Application>
+ <flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
+
+</s:Application>
Please sign in to comment.
Something went wrong with that request. Please try again.