API Docs for: 3.8.0
Show:

test-console Module

User Guide & Examples

Available since 3.5.0

Provides a specialized log console widget that's pre-configured to display YUI Test output with no extra configuration.

Example:

<div id="log" class="yui3-skin-sam"></div>

<script>
YUI().use('test-console', function (Y) {
    // ... set up your test cases here ...

    // Render the console inside the #log div, then run the tests.
    new Y.Test.Console().render('#log');
    Y.Test.Runner.run();
});
</script>

This module provides the following classes: