www/build/tools/csslint-rhino.js
function (object, message) {
        YUITest.Assert._increment();
        var count = 0,
            name;
        for (name in object){
            if (object.hasOwnProperty(name)){
                count++;
            }
        }

        if (count !== 0){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Object owns " + count + " properties but should own none."));
        }

    }
function (object, message) {
        YUITest.Assert._increment();
        var count = 0,
            name;
        for (name in object){
            if (object.hasOwnProperty(name)){
                count++;
            }
        }

        if (count !== 0){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Object owns " + count + " properties but should own none."));
        }

    }
function ( object , message ) { YUITest . Assert . _increment ( ) ; var count = 0 , name ; for ( name in object ) { if ( object . hasOwnProperty ( name ) ) { count ++ ; } } if ( count !== 0 ) { YUITest . Assert . fail ( YUITest . Assert . _formatMessage ( message , "Object owns " + count + " properties but should own none." ) ) ; } }
Asserts that an object owns no properties.
@param {Object} object The object to check.
@param {String} message (Optional) The message to display if the assertion fails.
@method ownsNoKeys
@static
Asserts that an object owns no properties .