Packageorg.flexunit.async
Classpublic class AsyncNativeTestResponder
InheritanceAsyncNativeTestResponder Inheritance flash.net.Responder
Implements flash.events.IEventDispatcher

A respoder for asynchronous tests that contains result and fault handlers for the test succeeding or the test failing to succeed.



Public Methods
 MethodDefined By
  
AsyncNativeTestResponder(resultHandler:Function, faultHandler:Function)
Constructor.
AsyncNativeTestResponder
  
fault(info:Object):void
Dispatches an AsyncResponseEvent with the orignalResponder, a "fault" status, and the provided info object.
AsyncNativeTestResponder
  
result(data:Object):void
Dispatches an AsyncResponseEvent with the orignalResponder, a "result" status, and the provided info object.
AsyncNativeTestResponder
Events
 Event Summary Defined By
  The 'responderFired' event is fired when either a result or fault is dispatched.AsyncNativeTestResponder
Constructor Detail
AsyncNativeTestResponder()Constructor
public function AsyncNativeTestResponder(resultHandler:Function, faultHandler:Function)

Constructor.

Parameters
resultHandler:Function — The responder to be passed when the AsyncResponseEvent is dispatched.
 
faultHandler:Function
Method Detail
fault()method
public function fault(info:Object):void

Dispatches an AsyncResponseEvent with the orignalResponder, a "fault" status, and the provided info object.

Parameters

info:Object

result()method 
public function result(data:Object):void

Dispatches an AsyncResponseEvent with the orignalResponder, a "result" status, and the provided info object.

Parameters

data:Object

Event Detail
responderFired Event
Event Object Type: net.digitalprimates.fluint.events.AsyncResponseEvent

The 'responderFired' event is fired when either a result or fault is dispatched.