/* Simple test driver for an application built in mxml. It presumes that UI-components of interest are available as dynamically added properties of the application object (so it is accessibe from its properties-array). */ package UU.Testing { import flash.events.* ; public class SimpleTestDriver extends BaseTestDriver { public function SimpleTestDriver(app_ : Object, resetf : Function) { super(app_,resetf) ; } override public function getEventDispatcher(id : String) : EventDispatcher { return app[id] ; } override public function getComponentProperty(id : String, prop : String) : Object { return (app[id])[prop] ; } override public function setComponentProperty(id : String, prop : String, val : Object) : void { var c : Object = app[id] ; c[prop] = val ; } } }