|
From: <luk...@us...> - 2006-10-11 05:31:19
|
Revision: 124
http://svn.sourceforge.net/asunit/?rev=124&view=rev
Author: lukebayes
Date: 2006-10-10 22:31:17 -0700 (Tue, 10 Oct 2006)
Log Message:
-----------
Fixed Indenting on FlexTestRunner
Modified Paths:
--------------
trunk/framework/as3/asunit/textui/FlexTestRunner.as
Modified: trunk/framework/as3/asunit/textui/FlexTestRunner.as
===================================================================
--- trunk/framework/as3/asunit/textui/FlexTestRunner.as 2006-10-11 05:21:28 UTC (rev 123)
+++ trunk/framework/as3/asunit/textui/FlexTestRunner.as 2006-10-11 05:31:17 UTC (rev 124)
@@ -6,50 +6,50 @@
public class FlexTestRunner extends TestRunner {
- public function FlexTestRunner() {
- setPrinter(new ResultPrinter());
- }
-
- protected override function addedHandler(event:Event):void {
- if(event.target === this) {
- parent.addEventListener(Event.RESIZE, resizeHandler);
- resizeHandler(new Event(Event.RESIZE));
- }
- else {
- event.stopPropagation();
+ public function FlexTestRunner() {
+ setPrinter(new ResultPrinter());
}
- }
-
- public override function set width(w:Number):void {
- fPrinter.width = w;
- }
-
- public override function set height(h:Number):void {
- fPrinter.height = h;
- }
-
- public function resizeHandler(event:Event):void {
- width = parent.width;
- height = parent.height;
- }
-
- public override function addChild(child:DisplayObject):DisplayObject {
- if(parent && child is IUIComponent) {
- // AND check for 'is' UIUComponent...
- return parent.addChild(child);
- }
- else {
- return super.addChild(child);
- }
- }
-
- public override function removeChild(child:DisplayObject):DisplayObject {
- if(child is IUIComponent) {
- return parent.removeChild(child);
- }
- else {
- return super.removeChild(child);
- }
- }
+
+ protected override function addedHandler(event:Event):void {
+ if(event.target === this) {
+ parent.addEventListener(Event.RESIZE, resizeHandler);
+ resizeHandler(new Event(Event.RESIZE));
+ }
+ else {
+ event.stopPropagation();
+ }
+ }
+
+ public override function set width(w:Number):void {
+ fPrinter.width = w;
+ }
+
+ public override function set height(h:Number):void {
+ fPrinter.height = h;
+ }
+
+ public function resizeHandler(event:Event):void {
+ width = parent.width;
+ height = parent.height;
+ }
+
+ public override function addChild(child:DisplayObject):DisplayObject {
+ if(parent && child is IUIComponent) {
+ // AND check for 'is' UIUComponent...
+ return parent.addChild(child);
+ }
+ else {
+ return super.addChild(child);
+ }
+ }
+
+ public override function removeChild(child:DisplayObject):DisplayObject {
+ if(child is IUIComponent) {
+ return parent.removeChild(child);
+ }
+ else {
+ return super.removeChild(child);
+ }
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|