Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

Async.proceedOnEvent vs. Async.handleEvent

$
0
0

What I'd like to do is to handle the event generated by a process and proceed to the next test only after it has been handled.

 

When I tried just using Async.handleEvent, the test running would allow other tests to start (this is a problem because the other tests generate their own events which then get handled by the wrong test).  If I use Async.proceedOnEvent, since there is no handler function I never have access to the event.  What I wound up doing was using two calls, one to Async.handleEvent and one to Async,proceedOnEvent for the same event.  This seems a bit clunky, am I doing this the best way?


Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>