a grand renaming so that the most significant portion of the name comes first
This commit is contained in:
37
flex-practice/custom-03g1-debugging/me/DebuggingApp.as
Normal file
37
flex-practice/custom-03g1-debugging/me/DebuggingApp.as
Normal file
@@ -0,0 +1,37 @@
|
||||
package me
|
||||
{
|
||||
//namespace me = "me.*";
|
||||
import mx.core.Application;
|
||||
import mx.controls.Alert;
|
||||
import mx.controls.Button;
|
||||
|
||||
import flash.events.Event;
|
||||
import flash.events.MouseEvent;
|
||||
|
||||
public class DebuggingApp extends Application
|
||||
{
|
||||
public var clickButton:Button;
|
||||
|
||||
public function DebuggingApp():void
|
||||
{
|
||||
this.addEventListener("creationComplete", initApp);
|
||||
clickButton = new Button();
|
||||
clickButton.label = "Click Me";
|
||||
clickButton.addEventListener("click", showAlert);
|
||||
this.addChild(clickButton);
|
||||
}
|
||||
|
||||
public function showAlert(event:MouseEvent):void
|
||||
{
|
||||
Alert.show('Hello from Flex');
|
||||
trace("Clickety Click! -> " + event);
|
||||
}
|
||||
|
||||
public function initApp(event:Event):void
|
||||
{
|
||||
trace("Hello from Flex Debugging!");
|
||||
var myVar:Number = 9;
|
||||
trace("The value of myVar is " + myVar);
|
||||
}
|
||||
}
|
||||
}
|
18
flex-practice/custom-03g1-debugging/me/tests/TestSuite.as
Normal file
18
flex-practice/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
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@@ -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