Question
addAsync chaining help
Hi,
Using v0.9
I read over the online doc on chaining here:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails&postId=6882&productId=2&loc=en_US
However I cannot seem to get this to work.
a) My outer "test" registers a addAsync function (verifyWriteComplete) to listen for the "success" event of writing a file. This gets called successfully.
b) verifyWriteComplete, then calls another function called "readWrittenFile".
c) "readWrittenFile" registers and addAsync function "verifyReadComplete" which reads the file written by A above. This verifyReadComplete function IS being called OK (I can see via trace statements).
The problem is that the second chained addAsync (C) above in flexunit is still reporting that it was never called within the timeout, despite the fact that it obviously is. The test runner is reporting a failure, even though the verifyReadComplete wrapped in an addAsync was called OK.
Using v0.9
I read over the online doc on chaining here:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails&postId=6882&productId=2&loc=en_US
However I cannot seem to get this to work.
a) My outer "test" registers a addAsync function (verifyWriteComplete) to listen for the "success" event of writing a file. This gets called successfully.
b) verifyWriteComplete, then calls another function called "readWrittenFile".
c) "readWrittenFile" registers and addAsync function "verifyReadComplete" which reads the file written by A above. This verifyReadComplete function IS being called OK (I can see via trace statements).
The problem is that the second chained addAsync (C) above in flexunit is still reporting that it was never called within the timeout, despite the fact that it obviously is. The test runner is reporting a failure, even though the verifyReadComplete wrapped in an addAsync was called OK.
