This example shows basic usage of the YUI Test standalone for testing browser-based JavaScript code. Two different TestCase
objects are created and added to a TestSuite
object. The TestRunner
is then used to run the tests once the page has loaded. The YUI 3 Console
is used to output the results of the tests.