Asynchronous Event Testing

This example shows how to create an asynchronous test with the YUI Test framework for testing browser-based JavaScript code. A code>Y.Test.Case object is created to test the Y.Anim object. The test waits until the animation is complete before checking the settings of the animated element.