YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

yuitest  2.3.0

Yahoo! UI Library > yuitest > YAHOO.util.DateAssert

Show Private Show Protected

static Class YAHOO.util.DateAssert

The DateAssert object provides functions to test JavaScript Date objects for a variety of cases.



static void areEqual ( expected , actual , message )
Asserts that a date's month, day, and year are equal to another date's.
expected <Date> The expected date.
actual <Date> The actual date to test.
message <String> (Optional) The message to display if the assertion fails.
Returns: void

Copyright © 2007 Yahoo! Inc. All rights reserved.