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

            //if the form hasn't been created yet, create it
            if (!this._form){
                this._form = document.createElement("form");
                this._form.method = "post";
                this._form.style.visibility = "hidden";
                this._form.style.position = "absolute";
                this._form.style.top = 0;
                document.body.appendChild(this._form);

                //IE won't let you assign a name using the DOM, must do it the hacky way
                try {
                    this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
                } catch (ex){
                    this._iframe = document.createElement("iframe");
                    this._iframe.name = "yuiTestTarget";
                }

                this._iframe.src = "javascript:false";
                this._iframe.style.visibility = "hidden";
                this._iframe.style.position = "absolute";
                this._iframe.style.top = 0;
                document.body.appendChild(this._iframe);

                this._form.target = "yuiTestTarget";
            }

            //set the form's action
            this._form.action = this.url;

            //remove any existing fields
            while(this._form.hasChildNodes()){
                this._form.removeChild(this._form.lastChild);
            }

            //create default fields
            this._fields.results = this.format(results);
            this._fields.useragent = navigator.userAgent;
            this._fields.timestamp = (new Date()).toLocaleString();

            //add fields to the form
            for (var prop in this._fields){
                var value = this._fields[prop];
                if (this._fields.hasOwnProperty(prop) && (typeof value != "function")){
                    var input = document.createElement("input");
                    input.type = "hidden";
                    input.name = prop;
                    input.value = value;
                    this._form.appendChild(input);
                }
            }

            //remove default fields
            delete this._fields.results;
            delete this._fields.useragent;
            delete this._fields.timestamp;

            if (arguments[1] !== false){
                this._form.submit();
            }

        }
function(results){

            //if the form hasn't been created yet, create it
            if (!this._form){
                this._form = document.createElement("form");
                this._form.method = "post";
                this._form.style.visibility = "hidden";
                this._form.style.position = "absolute";
                this._form.style.top = 0;
                document.body.appendChild(this._form);

                //IE won't let you assign a name using the DOM, must do it the hacky way
                try {
                    this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
                } catch (ex){
                    this._iframe = document.createElement("iframe");
                    this._iframe.name = "yuiTestTarget";
                }

                this._iframe.src = "javascript:false";
                this._iframe.style.visibility = "hidden";
                this._iframe.style.position = "absolute";
                this._iframe.style.top = 0;
                document.body.appendChild(this._iframe);

                this._form.target = "yuiTestTarget";
            }

            //set the form's action
            this._form.action = this.url;

            //remove any existing fields
            while(this._form.hasChildNodes()){
                this._form.removeChild(this._form.lastChild);
            }

            //create default fields
            this._fields.results = this.format(results);
            this._fields.useragent = navigator.userAgent;
            this._fields.timestamp = (new Date()).toLocaleString();

            //add fields to the form
            for (var prop in this._fields){
                var value = this._fields[prop];
                if (this._fields.hasOwnProperty(prop) && (typeof value != "function")){
                    var input = document.createElement("input");
                    input.type = "hidden";
                    input.name = prop;
                    input.value = value;
                    this._form.appendChild(input);
                }
            }

            //remove default fields
            delete this._fields.results;
            delete this._fields.useragent;
            delete this._fields.timestamp;

            if (arguments[1] !== false){
                this._form.submit();
            }

        }
function ( results ) { //if the form hasn't been created yet, create it if ( ! this . _form ) { this . _form = document . createElement ( "form" ) ; this . _form . method = "post" ; this . _form . style . visibility = "hidden" ; this . _form . style . position = "absolute" ; this . _form . style . top = 0 ; document . body . appendChild ( this . _form ) ; //IE won't let you assign a name using the DOM, must do it the hacky way try { this . _iframe = document . createElement ( "<iframe name=\"yuiTestTarget\" />" ) ; } catch ( ex ) { this . _iframe = document . createElement ( "iframe" ) ; this . _iframe . name = "yuiTestTarget" ; } this . _iframe . src = "javascript:false" ; this . _iframe . style . visibility = "hidden" ; this . _iframe . style . position = "absolute" ; this . _iframe . style . top = 0 ; document . body . appendChild ( this . _iframe ) ; this . _form . target = "yuiTestTarget" ; } //set the form's action this . _form . action = this . url ; //remove any existing fields while ( this . _form . hasChildNodes ( ) ) { this . _form . removeChild ( this . _form . lastChild ) ; } //create default fields this . _fields . results = this . format ( results ) ; this . _fields . useragent = navigator . userAgent ; this . _fields . timestamp = ( new Date ( ) ) . toLocaleString ( ) ; //add fields to the form for ( var prop in this . _fields ) { var value = this . _fields [ prop ] ; if ( this . _fields . hasOwnProperty ( prop ) && ( typeof value != "function" ) ) { var input = document . createElement ( "input" ) ; input . type = "hidden" ; input . name = prop ; input . value = value ; this . _form . appendChild ( input ) ; } } //remove default fields delete this . _fields . results ; delete this . _fields . useragent ; delete this . _fields . timestamp ; if ( arguments [ 1 ] !== false ) { this . _form . submit ( ) ; } }
Sends the report to the server.
@param {Object} results The results object created by TestRunner.
@return {Void}
@method report
Sends the report to the server .