www/build/tools/csslint-rhino.js
function (expected, actual,
                           message) {

        YUITest.Assert._increment();

        //first check array length
        if (expected.length != actual.length){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Array should have a length of " + expected.length + " but has a length of " + actual.length));
        }

        //begin checking values
        for (var i=0; i < expected.length; i++){
            if (expected[i] != actual[i]){
                throw new YUITest.Assert.ComparisonFailure(YUITest.Assert._formatMessage(message, "Values in position " + i + " are not equal."), expected[i], actual[i]);
            }
        }
    }
function (expected, actual,
                           message) {

        YUITest.Assert._increment();

        //first check array length
        if (expected.length != actual.length){
            YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Array should have a length of " + expected.length + " but has a length of " + actual.length));
        }

        //begin checking values
        for (var i=0; i < expected.length; i++){
            if (expected[i] != actual[i]){
                throw new YUITest.Assert.ComparisonFailure(YUITest.Assert._formatMessage(message, "Values in position " + i + " are not equal."), expected[i], actual[i]);
            }
        }
    }
function ( expected , actual , message ) { YUITest . Assert . _increment ( ) ; //first check array length if ( expected . length != actual . length ) { YUITest . Assert . fail ( YUITest . Assert . _formatMessage ( message , "Array should have a length of " + expected . length + " but has a length of " + actual . length ) ) ; } //begin checking values for ( var i = 0 ; i < expected . length ; i ++ ) { if ( expected [ i ] != actual [ i ] ) { throw new YUITest . Assert . ComparisonFailure ( YUITest . Assert . _formatMessage ( message , "Values in position " + i + " are not equal." ) , expected [ i ] , actual [ i ] ) ; } } }
Asserts that the values in an array are equal, and in the same position,
as values in another array. This uses the double equals sign
so type cohersion may occur. Note that the array objects themselves
need not be the same for this test to pass.
@param {Array} expected An array of the expected values.
@param {Array} actual Any array of the actual values.
@param {String} message (Optional) The message to display if the assertion fails.
@method itemsAreEqual
@static
Asserts that the values in an array are equal and in the same position as values in another array . This uses the double equals sign so type cohersion may occur . Note that the array objects themselves need not be the same for this test to pass .