Permalink
Browse files

cleanup of project test

added test ant tasks
added index.html for tests
  • Loading branch information...
1 parent 183f6ce commit d66bfe2e0a01eb85a5f3ade105c3d336f1b1e915 @mstandio committed Feb 3, 2013
Showing with 2,177 additions and 2,086 deletions.
  1. +4 −4 SaladoPlayer.as3proj
  2. +38 −1 ant/build.xml
  3. +18 −3 obj/SaladoPlayerConfig.old
  4. +14 −1 obj/SaladoPlayerConfig.xml
  5. BIN {testbin → test/bin}/assets/blue.png
  6. BIN {testbin → test/bin}/assets/green.bmp
  7. BIN {testbin → test/bin}/assets/red.jpg
  8. BIN {testbin → test/bin}/assets/yellow.gif
  9. +5 −0 test/bin/compiled_files.txt
  10. +25 −0 test/bin/index.html
  11. BIN test/bin/tests/Configuration.swf
  12. BIN test/bin/tests/Loading.swf
  13. BIN {testlib → test/lib}/flexunit-4.0.0.swc
  14. BIN {testlib → test/lib}/flexunit-uilistener-4.0.0.swc
  15. BIN {testlib → test/lib}/hamcrest-1.0.2.swc
  16. 0 {testsrc → test/src}/suite/configuration/Configuration.mxml
  17. 0 {testsrc → test/src}/suite/configuration/Parser.as
  18. +30 −30 {testsrc → test/src}/suite/configuration/Translator.as
  19. 0 {testsrc → test/src}/suite/configuration/Validator.as
  20. +10 −10 {testsrc → test/src}/suite/loading/Loader.as
  21. +32 −32 {testsrc → test/src}/suite/loading/Loading.mxml
  22. 0 ...c → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataParserXMLActions.as
  23. 0 ...rc → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataParserXMLGlobal.as
  24. +338 −338 ...c → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataParserXMLModules.as
  25. 0 ...→ test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataParserXMLPanoramas.as
  26. 0 ...→ test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataParserXMLRecognize.as
  27. 0 ...c → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataValidatorActions.as
  28. +146 −146 ... → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataValidatorHotspots.as
  29. +100 −100 ...c → test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataValidatorModules.as
  30. 0 ...→ test/src}/test/com/panozona/player/manager/utils/configuration/ManagerDataValidatorPanoramas.as
  31. +124 −124 {testsrc → test/src}/test/com/panozona/player/manager/utils/loading/LoadablesLoaderAsync.as
  32. +81 −81 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorBoolean.as
  33. +135 −135 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorFunction.as
  34. +133 −133 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorNumber.as
  35. +137 −137 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorObject.as
  36. +133 −133 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorString.as
  37. +80 −80 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorSubBoolean.as
  38. +109 −109 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorSubFunction.as
  39. +107 −107 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorSubNumber.as
  40. +107 −107 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorSubString.as
  41. +73 −73 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorSubattributes.as
  42. +198 −198 {testsrc → test/src}/test/com/panozona/player/module/utils/DataNodeTranslatorTranslate.as
  43. +0 −2 testbin/.gitignore
  44. +0 −2 testbin/compiled_files.txt
View
@@ -16,7 +16,7 @@
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
- <class path="testsrc" />
+ <class path="test\src" />
</classpaths>
<!-- Build options -->
<build>
@@ -53,9 +53,9 @@
<libraryPaths>
<element path="lib\tweener.swc" />
<element path="lib\GIFPlayer-0.6.swc" />
- <element path="testlib\flexunit-4.0.0.swc" />
- <element path="testlib\flexunit-uilistener-4.0.0.swc" />
- <element path="testlib\hamcrest-1.0.2.swc" />
+ <element path="test\lib\flexunit-4.0.0.swc" />
+ <element path="test\lib\flexunit-uilistener-4.0.0.swc" />
+ <element path="test\lib\hamcrest-1.0.2.swc" />
</libraryPaths>
<!-- External Libraries -->
<externalLibraryPaths>
View
@@ -22,6 +22,7 @@
<property name="debuggableSwf" value="false"/>
<property file="bin/compiled_files.txt"/>
+ <property file="test/bin/compiled_files.txt"/>
<property environment="env"/>
<property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
<taskdef name="mxmlc" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" classname="flex.ant.MxmlcTask"/>
@@ -59,7 +60,8 @@
GrowingSpot,
NadirSpot,
VideoSpot,
- ExamplesLoader"/>
+ ExamplesLoader,
+ Tests"/>
<target name="SaladoPlayer">
<propertyregex property="SaladoPlayer.swf.dir"
@@ -836,4 +838,39 @@
</mxmlc>
</target>
+ <target name="Tests">
+ <mxmlc
+ file="${Configuration.mxml}"
+ output="${Configuration.swf}"
+ fork="true" maxmemory="512m"
+ debug="${debuggableSwf}"
+ static-link-runtime-shared-libraries="true">
+ <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+ <source-path path-element="${basedir}/src"/>
+ <source-path path-element="${basedir}/test/src"/>
+ <compiler.include-libraries dir="${basedir}" append="true">
+ <include name="lib"/>
+ </compiler.include-libraries>
+ <compiler.include-libraries dir="${basedir}/test" append="true">
+ <include name="lib"/>
+ </compiler.include-libraries>
+ </mxmlc>
+ <mxmlc
+ file="${Loading.mxml}"
+ output="${Loading.swf}"
+ fork="true" maxmemory="512m"
+ debug="${debuggableSwf}"
+ static-link-runtime-shared-libraries="true">
+ <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+ <source-path path-element="${basedir}/src"/>
+ <source-path path-element="${basedir}/test/src"/>
+ <compiler.include-libraries dir="${basedir}" append="true">
+ <include name="lib"/>
+ </compiler.include-libraries>
+ <compiler.include-libraries dir="${basedir}/test" append="true">
+ <include name="lib"/>
+ </compiler.include-libraries>
+ </mxmlc>
+ </target>
+
</project>
View
@@ -8,16 +8,30 @@
<compiler>
<define append="true">
<name>CONFIG::debug</name>
- <value>true</value>
+ <value>false</value>
</define>
<define append="true">
<name>CONFIG::release</name>
- <value>false</value>
+ <value>true</value>
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
- <value>'2012-04-15'</value>
+ <value>'2012-12-29'</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::air</name>
+ <value>false</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::mobile</name>
+ <value>false</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::desktop</name>
+ <value>false</value>
</define>
+ <optimize>true</optimize>
+ <omit-trace-statements>true</omit-trace-statements>
<verbose-stacktraces>true</verbose-stacktraces>
<source-path append="true">
<path-element>F:\happydev\saladoplayer\SaladoPlayer\src</path-element>
@@ -26,6 +40,7 @@
</source-path>
<library-path append="true">
<path-element>F:\happydev\saladoplayer\SaladoPlayer\lib\tweener.swc</path-element>
+ <path-element>F:\happydev\saladoplayer\SaladoPlayer\lib\GIFPlayer-0.6.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\flexunit-4.0.0.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\flexunit-uilistener-4.0.0.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\hamcrest-1.0.2.swc</path-element>
View
@@ -16,7 +16,19 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
- <value>'2012-04-15'</value>
+ <value>'2012-12-30'</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::air</name>
+ <value>false</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::mobile</name>
+ <value>false</value>
+ </define>
+ <define append="true">
+ <name>CONFIG::desktop</name>
+ <value>false</value>
</define>
<optimize>true</optimize>
<omit-trace-statements>true</omit-trace-statements>
@@ -28,6 +40,7 @@
</source-path>
<library-path append="true">
<path-element>F:\happydev\saladoplayer\SaladoPlayer\lib\tweener.swc</path-element>
+ <path-element>F:\happydev\saladoplayer\SaladoPlayer\lib\GIFPlayer-0.6.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\flexunit-4.0.0.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\flexunit-uilistener-4.0.0.swc</path-element>
<path-element>F:\happydev\saladoplayer\SaladoPlayer\testlib\hamcrest-1.0.2.swc</path-element>
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
@@ -0,0 +1,5 @@
+Configuration.mxml = test/src/suite/configuration/Configuration.mxml
+Configuration.swf = test/bin/tests/Configuration.swf
+
+Loading.mxml = test/src/suite/loading/Loading.mxml
+Loading.swf = test/bin/tests/Loading.swf
View
@@ -0,0 +1,25 @@
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+ <head>
+ <title>Tests</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <script type="text/javascript" src="../../bin/viewer/embed/swfobject.js"></script>
+ <script type="text/javascript">
+ swfobject.embedSWF("tests/Configuration.swf", "Configuration", "100%", "100%", "10.1.0");
+ swfobject.embedSWF("tests/Loading.swf", "Loading", "100%", "100%", "10.1.0");
+ </script>
+ <style type="text/css">
+ .testSwf {
+ height:600,
+ position:fixed
+ }
+ </style>
+ </head>
+ <body bgcolor="#000000">
+ <div class="testSwf">
+ <div id="Configuration" />
+ </div>
+ <div class="testSwf">
+ <div id="Loading" />
+ </div>
+ </body>
+</html>
Binary file not shown.
View
Binary file not shown.
File renamed without changes.
File renamed without changes.
@@ -1,31 +1,31 @@
-package suite.configuration{
-
- import test.com.panozona.player.module.utils.DataNodeTranslatorTranslate;
- import test.com.panozona.player.module.utils.DataNodeTranslatorBoolean;
- import test.com.panozona.player.module.utils.DataNodeTranslatorNumber;
- import test.com.panozona.player.module.utils.DataNodeTranslatorString;
- import test.com.panozona.player.module.utils.DataNodeTranslatorFunction;
- import test.com.panozona.player.module.utils.DataNodeTranslatorObject;
- import test.com.panozona.player.module.utils.DataNodeTranslatorSubattributes;
- import test.com.panozona.player.module.utils.DataNodeTranslatorSubBoolean;
- import test.com.panozona.player.module.utils.DataNodeTranslatorSubNumber;
- import test.com.panozona.player.module.utils.DataNodeTranslatorSubString;
- import test.com.panozona.player.module.utils.DataNodeTranslatorSubFunction;
-
- [Suite]
- [RunWith("org.flexunit.runners.Suite")]
- public class Translator{
-
- public var dataNodeTranslatorTranslate:DataNodeTranslatorTranslate;
- public var dataNodeTranslatorBoolean:DataNodeTranslatorBoolean;
- public var dataNodeTranslatorNumber:DataNodeTranslatorNumber;
- public var dataNodeTranslatorString:DataNodeTranslatorString;
- public var dataNodeTranslatorFunction:DataNodeTranslatorFunction;
- public var dataNodeTranslatorObject:DataNodeTranslatorObject;
- public var dataNodeTranslatorSubattributes:DataNodeTranslatorSubattributes;
- public var dataNodeTranslatorSubBoolean:DataNodeTranslatorSubBoolean;
- public var dataNodeTranslatorSubNumber:DataNodeTranslatorSubNumber;
- public var dataNodeTranslatorSubString:DataNodeTranslatorSubString;
- public var dataNodeTranslatorSubFunction:DataNodeTranslatorSubFunction;
- }
+package suite.configuration{
+
+ import test.com.panozona.player.module.utils.DataNodeTranslatorTranslate;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorBoolean;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorNumber;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorString;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorFunction;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorObject;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorSubattributes;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorSubBoolean;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorSubNumber;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorSubString;
+ import test.com.panozona.player.module.utils.DataNodeTranslatorSubFunction;
+
+ [Suite]
+ [RunWith("org.flexunit.runners.Suite")]
+ public class Translator{
+
+ public var dataNodeTranslatorTranslate:DataNodeTranslatorTranslate;
+ public var dataNodeTranslatorBoolean:DataNodeTranslatorBoolean;
+ public var dataNodeTranslatorNumber:DataNodeTranslatorNumber;
+ public var dataNodeTranslatorString:DataNodeTranslatorString;
+ public var dataNodeTranslatorFunction:DataNodeTranslatorFunction;
+ public var dataNodeTranslatorObject:DataNodeTranslatorObject;
+ public var dataNodeTranslatorSubattributes:DataNodeTranslatorSubattributes;
+ public var dataNodeTranslatorSubBoolean:DataNodeTranslatorSubBoolean;
+ public var dataNodeTranslatorSubNumber:DataNodeTranslatorSubNumber;
+ public var dataNodeTranslatorSubString:DataNodeTranslatorSubString;
+ public var dataNodeTranslatorSubFunction:DataNodeTranslatorSubFunction;
+ }
}
@@ -1,11 +1,11 @@
-package suite.loading {
-
- import test.com.panozona.player.manager.utils.loading.LoadablesLoaderAsync;
-
- [Suite]
- [RunWith("org.flexunit.runners.Suite")]
- public class Loader {
-
- public var loadablesLoaderAsync:LoadablesLoaderAsync;
- }
+package suite.loading {
+
+ import test.com.panozona.player.manager.utils.loading.LoadablesLoaderAsync;
+
+ [Suite]
+ [RunWith("org.flexunit.runners.Suite")]
+ public class Loader {
+
+ public var loadablesLoaderAsync:LoadablesLoaderAsync;
+ }
}
@@ -1,32 +1,32 @@
-<?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/mx"
- xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
- creationComplete="runMe()">
- <fx:Script>
- <![CDATA[
-
- import org.flexunit.assertThat;
- import org.flexunit.asserts.*;
- import org.flexunit.listeners.UIListener;
- import org.flexunit.runner.FlexUnitCore;
- import org.flexunit.runner.Request;
- import org.flexunit.runner.notification.async.XMLListener;
-
- import suite.loading.Loader;
-
- private var core:FlexUnitCore;
-
- public function runMe():void {
- core = new FlexUnitCore();
- core.addListener( new UIListener( uiListener ));
-
- core.run(suite.loading.Loader);
- }
-
- ]]>
- </fx:Script>
- <flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
-</s:Application>
-
+<?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/mx"
+ xmlns:flexUnitUIRunner="http://www.adobe.com/2009/flexUnitUIRunner"
+ creationComplete="runMe()">
+ <fx:Script>
+ <![CDATA[
+
+ import org.flexunit.assertThat;
+ import org.flexunit.asserts.*;
+ import org.flexunit.listeners.UIListener;
+ import org.flexunit.runner.FlexUnitCore;
+ import org.flexunit.runner.Request;
+ import org.flexunit.runner.notification.async.XMLListener;
+
+ import suite.loading.Loader;
+
+ private var core:FlexUnitCore;
+
+ public function runMe():void {
+ core = new FlexUnitCore();
+ core.addListener( new UIListener( uiListener ));
+
+ core.run(suite.loading.Loader);
+ }
+
+ ]]>
+ </fx:Script>
+ <flexUnitUIRunner:TestRunnerBase id="uiListener" width="100%" height="100%" />
+</s:Application>
+
Oops, something went wrong.

0 comments on commit d66bfe2

Please sign in to comment.