Hi,
I'm trying to get my head around how someone would order a series of async tests. I'm aware of this meta:
[Test(async, order=1)]
public function myFunction():void
{
...
...
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, Async.asyncHandler(this, verifySwfLoad, 10000, null, handleTimeout));
}
private function verifySwfLoad(event:Event, passThroughData:Object):void
{
// how would you handle async tests ([Test]) from here on the loaded .swf? Call "callSWFMethods" explicitly?
}
[Test(async, order=2)]
public function callSWFMethods():void
{
}
...but considering you need to setup a "non [Test]" function to handle an async test (i.e. the "verifySwfLoad" function above), how would you subsequently move onto other [Test] functions if your initial test is an async one? Or do you subsequently have to run tests by explicitly calling functions by name (i.e. not via the [Test] meta method)?
Any examples on how to chain async tests (specifically on loading a swf if possible and then calling methods on it) would be greatly appreciated.
In a nutshell, I'm trying to test the loading in of a swf and then calling internal async methods of that .swf.