www/build/tools/csslint-rhino.js
function (expected, actual, message){
        YUITest.Assert._increment();
        if (expected instanceof Date && actual instanceof Date){
            var msg = "";

            //check hours first
            if (expected.getHours() != actual.getHours()){
                msg = "Hours should be equal.";
            }

            //now check minutes
            if (expected.getMinutes() != actual.getMinutes()){
                msg = "Minutes should be equal.";
            }

            //last, check the seconds
            if (expected.getSeconds() != actual.getSeconds()){
                msg = "Seconds should be equal.";
            }

            if (msg.length){
                throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(message, msg), expected, actual);
            }
        } else {
            throw new TypeError("YUITest.DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
        }
    }
function (expected, actual, message){
        YUITest.Assert._increment();
        if (expected instanceof Date && actual instanceof Date){
            var msg = "";

            //check hours first
            if (expected.getHours() != actual.getHours()){
                msg = "Hours should be equal.";
            }

            //now check minutes
            if (expected.getMinutes() != actual.getMinutes()){
                msg = "Minutes should be equal.";
            }

            //last, check the seconds
            if (expected.getSeconds() != actual.getSeconds()){
                msg = "Seconds should be equal.";
            }

            if (msg.length){
                throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(message, msg), expected, actual);
            }
        } else {
            throw new TypeError("YUITest.DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
        }
    }
function ( expected , actual , message ) { YUITest . Assert . _increment ( ) ; if ( expected instanceof Date && actual instanceof Date ) { var msg = "" ; //check hours first if ( expected . getHours ( ) != actual . getHours ( ) ) { msg = "Hours should be equal." ; } //now check minutes if ( expected . getMinutes ( ) != actual . getMinutes ( ) ) { msg = "Minutes should be equal." ; } //last, check the seconds if ( expected . getSeconds ( ) != actual . getSeconds ( ) ) { msg = "Seconds should be equal." ; } if ( msg . length ) { throw new YUITest . ComparisonFailure ( YUITest . Assert . _formatMessage ( message , msg ) , expected , actual ) ; } } else { throw new TypeError ( "YUITest.DateAssert.timesAreEqual(): Expected and actual values must be Date objects." ) ; } }
Asserts that a date's hour, minutes, and seconds are equal to another date's.
@param {Date} expected The expected date.
@param {Date} actual The actual date to test.
@param {String} message (Optional) The message to display if the assertion fails.
@method timesAreEqual
@static
Asserts that a date s hour minutes and seconds are equal to another date s .