www/build/tools/csslint-rhino.js
function (needle, haystack,
                           message) {

        YUITest.Assert._increment();

        if (this._indexOf(haystack, needle) == -1){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
        }
    }
function (needle, haystack,
                           message) {

        YUITest.Assert._increment();

        if (this._indexOf(haystack, needle) == -1){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
        }
    }
function ( needle , haystack , message ) { YUITest . Assert . _increment ( ) ; if ( this . _indexOf ( haystack , needle ) == - 1 ) { YUITest . Assert . fail ( YUITest . Assert . _formatMessage ( message , "Value " + needle + " (" + ( typeof needle ) + ") not found in array [" + haystack + "]." ) ) ; } }
Asserts that a value is present in an array. This uses the triple equals
sign so no type cohersion may occur.
@param {Object} needle The value that is expected in the array.
@param {Array} haystack An array of values.
@param {String} message (Optional) The message to display if the assertion fails.
@method contains
@static
Asserts that a value is present in an array . This uses the triple equals sign so no type cohersion may occur .