www/build/tools/csslint-rhino.js
function (options) {

                options = options || {};

                //pointer to runner to avoid scope issues
                var runner  = YUITest.TestRunner,
                    oldMode = options.oldMode;


                //if there's only one suite on the masterSuite, move it up
                if (!oldMode && this.masterSuite.items.length == 1 && this.masterSuite.items[0] instanceof YUITest.TestSuite){
                    this.masterSuite = this.masterSuite.items[0];
                }

                //determine if there are any groups to filter on
                runner._groups = (options.groups instanceof Array) ? "," + options.groups.join(",") + "," : "";

                //initialize the runner
                runner._buildTestTree();
                runner._context = {};
                runner._root._start = new Date();

                //fire the begin event
                runner.fire(runner.BEGIN_EVENT);

                //begin the testing
                runner._run();
            }
function (options) {

                options = options || {};

                //pointer to runner to avoid scope issues
                var runner  = YUITest.TestRunner,
                    oldMode = options.oldMode;


                //if there's only one suite on the masterSuite, move it up
                if (!oldMode && this.masterSuite.items.length == 1 && this.masterSuite.items[0] instanceof YUITest.TestSuite){
                    this.masterSuite = this.masterSuite.items[0];
                }

                //determine if there are any groups to filter on
                runner._groups = (options.groups instanceof Array) ? "," + options.groups.join(",") + "," : "";

                //initialize the runner
                runner._buildTestTree();
                runner._context = {};
                runner._root._start = new Date();

                //fire the begin event
                runner.fire(runner.BEGIN_EVENT);

                //begin the testing
                runner._run();
            }
function ( options ) { options = options || { } ; //pointer to runner to avoid scope issues var runner = YUITest . TestRunner , oldMode = options . oldMode ; //if there's only one suite on the masterSuite, move it up if ( ! oldMode && this . masterSuite . items . length == 1 && this . masterSuite . items [ 0 ] instanceof YUITest . TestSuite ) { this . masterSuite = this . masterSuite . items [ 0 ] ; } //determine if there are any groups to filter on runner . _groups = ( options . groups instanceof Array ) ? "," + options . groups . join ( "," ) + "," : "" ; //initialize the runner runner . _buildTestTree ( ) ; runner . _context = { } ; runner . _root . _start = new Date ( ) ; //fire the begin event runner . fire ( runner . BEGIN_EVENT ) ; //begin the testing runner . _run ( ) ; }
Runs the test suite.
@param {Object|Boolean} options (Optional) Options for the runner:
<code>oldMode</code> indicates the TestRunner should work in the YUI <= 2.8 way
of internally managing test suites. <code>groups</code> is an array
of test groups indicating which tests to run.
@return {Void}
@method run
@static
Runs the test suite .