YUI recommends YUI 3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
This example shows how to create an asynchronous test with the YUI Test framework for testing browser-based JavaScript code.
A TestCase
object is created with a test that waits for a
few seconds before continuing. The TestRunner
is then used to run the tests once the page has loaded.