Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisVarga committed Aug 26, 2010
0 parents commit 2268b89
Show file tree
Hide file tree
Showing 16 changed files with 127 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>WeLoveFDT_Robotlegs_Webinar</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.powerflasher.fdt.core.FlashBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.powerflasher.fdt.core.FlashNature</nature>
</natures>
</projectDescription>
8 changes: 8 additions & 0 deletions .settings/com.powerflasher.fdt.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<AS3Classpath>
<AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/player/{playerVersion}/playerglobal.swc</AS3Classpath>
<AS3Classpath generateProblems="false" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/flex.swc</AS3Classpath>
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src_test</AS3Classpath>
<AS3Classpath generateProblems="false" sdkBased="false" type="lib" useAsSharedCode="false">lib/flexunit-4.0.0.swc</AS3Classpath>
</AS3Classpath>
15 changes: 15 additions & 0 deletions .settings/com.powerflasher.fdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Tue Aug 24 07:46:52 CEST 2010
com.powerflasher.fdt.core.CompatiblePlayers=External_SWF_Viewer\:Browser\:Standalone_Flash_Player
com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-libraries\=true\n-target-player\={playerVersion}\n-library-path+\="{flexSDK}/frameworks/locale/en_US"
com.powerflasher.fdt.core.DefaultOutputFolder=bin
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
com.powerflasher.fdt.core.Language=AS3
com.powerflasher.fdt.core.PassClasspath=true
com.powerflasher.fdt.core.PassMainclass=true
com.powerflasher.fdt.core.PassRsls=false
com.powerflasher.fdt.core.PassSwcs=true
com.powerflasher.fdt.core.PlayerVersion=10.1
com.powerflasher.fdt.core.ProjectTypeHint=AS 3
com.powerflasher.fdt.core.Runtime=Flash_Player
com.powerflasher.fdt.core.SdkName=Flex 4.1
eclipse.preferences.version=1
3 changes: 3 additions & 0 deletions .settings/com.powerflasher.fdt.ui.asDoc.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Tue Aug 24 07:46:52 CEST 2010
//lib/flexunit-4.0.0.swc=
eclipse.preferences.version=1
3 changes: 3 additions & 0 deletions .settings/com.powerflasher.fdt.ui.sourceLocation.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Tue Aug 24 07:46:52 CEST 2010
//lib/flexunit-4.0.0.swc=
eclipse.preferences.version=1
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Tue Aug 24 07:46:52 CEST 2010
eclipse.preferences.version=1
encoding/<project>=UTF-8
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Author =>
- Francis Varga
- Marvin Blase

=================== Instructions ==================

=================== License ======================
26 changes: 26 additions & 0 deletions lib/License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FlexUnit 4 is under an MIT license.

Copyright (c) 2007 Digital Primates IT Consulting Group

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

http://flexunit.org/
Binary file added lib/flexunit-4.0.0.swc
Binary file not shown.
Binary file added lib/flexunit-aircilistener-4.0.0.swc
Binary file not shown.
Binary file added lib/flexunit-cilistener-4.0.0.swc
Binary file not shown.
Binary file added lib/flexunit-flexcoverlistener-4.0.0.swc
Binary file not shown.
Binary file added lib/flexunit-uilistener-4.0.0.swc
Binary file not shown.
Binary file added script/flexUnitTasks-4.0.0.jar
Binary file not shown.
34 changes: 34 additions & 0 deletions src_test/FlexUnitRunner.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package {
import org.flexunit.internals.TraceListener;
import org.flexunit.runner.FlexUnitCore;
import org.fluint.uiImpersonation.IVisualEnvironmentBuilder;
import org.fluint.uiImpersonation.VisualTestEnvironmentBuilder;

import flash.display.Sprite;

[SWF(backgroundColor="#FFFFFF", frameRate="31", width="640", height="480")]

public class FlexUnitRunner extends Sprite {
private var core : FlexUnitCore;

public function FlexUnitRunner() {
//Instantiate the core.
core = new FlexUnitCore();

//This registers the stage with the VisualTestEnvironmentBuilder, which allows you
//to use the UIImpersonator classes to add to the display list and remove from within your
//tests. With Flex, this is done for you, but in AS projects it needs to be handled manually.
var environmentBuilder : IVisualEnvironmentBuilder = VisualTestEnvironmentBuilder.getInstance(this);

//Add any listeners. In this case, the TraceListener has been added to display results.
core.addListener(new TraceListener());

//There should be only 1 call to run().
//You can pass a comma separated list (or an array) of tests or suites.
//You can also pass a Request Object, which allows you to sort, filter and subselect.
//var request:Request = Request.methods( someClass, ["method1", "method2", "method3"] ).sortWith( someSorter ).filterWith( someFilter );
//core.run( request );
core.run(SimpleTest);
}
}
}
11 changes: 11 additions & 0 deletions src_test/SimpleTest.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package {
import org.flexunit.Assert;

public class SimpleTest {

[Test]
public function testMe() : void {
Assert.assertTrue("Was not true", false);
}
}
}

0 comments on commit 2268b89

Please sign in to comment.