you can hack around it by pointing the the callback function to your unit
test class and dispatching an event from there.
On Thu, Aug 21, 2008 at 10:34 PM, Richard Rodseth <[EMAIL PROTECTED]>wrote:

>   As I mentioned, the service (delegate) method I am calling has an
> IResponder callback - it doesn't dispatch events.
>
> On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg <[EMAIL PROTECTED]>wrote:
>
>>   Say you are waiting for an object myDispatcher to dispatch an event
>> myEvent.
>> Then you call myDispatcher.addEventListener("myEvent", addAsync(
>> handleSuccess, 1000 ));
>> Inside handleSuccess you can assert as usually. If handleSuccess is
>> not called within 1000 ms, the test fails.
>>
>> Cheers
>> Ralf.
>>
>
>  
>



-- 
j:pn
\\no comment

Reply via email to