more experimentation with test stuff, tackling the source-path weirdness
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
package me.tests
|
||||
{
|
||||
import me.DebuggingApp;
|
||||
//import me.DebuggingApp;
|
||||
|
||||
import mx.core.Application;
|
||||
import org.flexunit.listeners.UIListener;
|
||||
import org.flexunit.runner.TestRunnerBase;
|
||||
import org.flexunit.runner.FlexUnitCore;
|
||||
//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 var uiListener:TestRunnerBase;
|
||||
//private var core:FlexUnitCore;
|
||||
|
||||
public function TestDebugging():void
|
||||
{
|
||||
@@ -19,9 +19,9 @@ package me.tests
|
||||
|
||||
public function runMe():void
|
||||
{
|
||||
core = new FlexUnitCore();
|
||||
core.addListener(new UIListener(uiListener));
|
||||
core.run(Debugging);
|
||||
//core = new FlexUnitCore();
|
||||
//core.addListener(new UIListener(uiListener));
|
||||
//core.run(Debugging);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
19
custom-03g1-debugging/me/tests/TestFoo.as
Normal file
19
custom-03g1-debugging/me/tests/TestFoo.as
Normal file
@@ -0,0 +1,19 @@
|
||||
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!");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user