This page contains JsUnit tests for the UI Datepicker plugin. To see them, take a look at the source.