more futzing with flexunit 4, about to switch from GNU make to Ant
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
package me.tests
|
||||
{
|
||||
//import me.DebuggingApp;
|
||||
|
||||
import mx.core.Application;
|
||||
//import org.flexunit.listeners.UIListener;
|
||||
//import org.flexunit.runner.TestRunnerBase;
|
||||
//import org.flexunit.runner.FlexUnitCore;
|
||||
|
||||
public class TestDebugging extends Application
|
||||
{
|
||||
//public var uiListener:TestRunnerBase;
|
||||
//private var core:FlexUnitCore;
|
||||
|
||||
public function TestDebugging():void
|
||||
{
|
||||
this.addEventListener("creationComplete", runMe);
|
||||
}
|
||||
|
||||
public function runMe():void
|
||||
{
|
||||
//core = new FlexUnitCore();
|
||||
//core.addListener(new UIListener(uiListener));
|
||||
//core.run(Debugging);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,19 +0,0 @@
|
||||
package me.tests
|
||||
{
|
||||
import mx.core.Application;
|
||||
import mx.controls.Alert;
|
||||
import flash.events.Event;
|
||||
|
||||
public class TestFoo extends Application
|
||||
{
|
||||
public function TestFoo():void
|
||||
{
|
||||
this.addEventListener("creationComplete", alertPoo);
|
||||
}
|
||||
|
||||
public function alertPoo(event:Event):void
|
||||
{
|
||||
Alert.show("poo!");
|
||||
}
|
||||
}
|
||||
}
|
18
custom-03g1-debugging/me/tests/TestSuite.as
Normal file
18
custom-03g1-debugging/me/tests/TestSuite.as
Normal file
@@ -0,0 +1,18 @@
|
||||
package me.tests
|
||||
{
|
||||
import me.tests.cases.TestCase01;
|
||||
|
||||
import mx.core.Application;
|
||||
import org.flexunit.Assert;
|
||||
|
||||
[Suite]
|
||||
[RunWith("org.flexunit.runners.Suite")]
|
||||
public class TestSuite extends Application
|
||||
{
|
||||
public var t1:TestCase01;
|
||||
|
||||
public function TestSuite():void
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
17
custom-03g1-debugging/me/tests/cases/TestCase01.as
Normal file
17
custom-03g1-debugging/me/tests/cases/TestCase01.as
Normal file
@@ -0,0 +1,17 @@
|
||||
package me.tests.cases
|
||||
{
|
||||
import org.flexunit.Assert;
|
||||
|
||||
public class TestCase01
|
||||
{
|
||||
public function TestCase01():void
|
||||
{
|
||||
}
|
||||
|
||||
[Test]
|
||||
public function testMathIsRealistic():void
|
||||
{
|
||||
Assert.assertEquals(12, 2 * 6);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user