This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Inject] | |
| public function set requestScreenDataSyncSignalPair(signal:RequestScreenDataSyncSignalPair):void | |
| { | |
| _requestScreenDataSyncSignalPair = signal; | |
| } | |
| override public function onRegister():void | |
| { | |
| eventMap.mapListener(eventDispatcher, UserDataSetEvent.DATA_SET_UPDATED, dataSetUpdatedHandler); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function isACommand(commandClazz:Class):Boolean | |
| { | |
| if(describeType(commandClazz).factory.method.(@name == "execute").length() > 0) | |
| { | |
| return true; | |
| } | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface ICompoundInterface extends IDrawable, IEdible | |
| { | |
| } | |
| public class SomethingConcrete implements IDrawable, IEdible | |
| { | |
| } | |
| // throws type conversion error | |
| var concreteThing:ICompoundInterface = ICompoundInterface(new SomethingConcrete()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class WarnIfCurrentEditDataIsChangedCommand extends Command | |
| { | |
| [Inject] | |
| public var getEditedVOSignalResponsePair:GetEditedVOSignalResponsePair; | |
| [Inject] | |
| public var editingModel:IEditingModel; | |
| [Inject] | |
| public var dataChangeEvent:AdminDataEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AccountDataLoadingService extends AdminDataLoadingService { | |
| public function AccountDataLoadingService() | |
| { | |
| _loadingDataVOType = AccountDataVO; | |
| super(); | |
| } | |
| override protected function processLoadedData(urlVars:URLVariables):void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.newloop.experiments.isnot { | |
| public class SomeClassA extends SomeClassB { | |
| public function SomeClassA() { | |
| } | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This causes repeated test running: | |
| override public function run():void{ | |
| var mockolateMaker:IEventDispatcher = prepare(Sprite); | |
| mockolateMaker.addEventListener(Event.COMPLETE, prepareCompleteHandler, false, 0, true); | |
| } | |
| private function prepareCompleteHandler(e:Event):void{ | |
| super.run(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // I started to notice that my test count was increasing exponentially. | |
| // So I placed a trace in the 'startTest' func of asunit.framework.TestResult (line 120) | |
| public function startTest(test:Test):void { | |
| var count:int = test.countTestCases(); | |
| fRunTests += count; | |
| trace("startTest: " + test + " => " + count + " : " + fRunTests); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package | |
| { | |
| import flash.display.MovieClip; | |
| public class FrameScriptManager extends Object | |
| { | |
| private var _targetMC:MovieClip; | |
| private var _frameNumbersToFunctionsArray:Array; | |
| public function FrameScriptManager(targetMC:MovieClip) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package app.restricted.view.overlays { | |
| import asunit.framework.TestCase; | |
| import org.robotlegs.mvcs.Mediator; | |
| import mockolate.prepare; | |
| import mockolate.nice; | |
| import mockolate.stub; | |
| import mockolate.verify; |