This example shows how to create an asynchronous test with the YUI Test framework for testing browser-based JavaScript code.
A Y.Test.Case
object is created with a test that waits for a
few seconds before continuing. The Y.Test.Runner
is then used to run the tests once the page has loaded.