Skip to content

Commit

Permalink
made unit test description better
Browse files Browse the repository at this point in the history
  • Loading branch information
fracmak committed Nov 13, 2012
1 parent 4eeab67 commit d3f4ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/datepicker/datepicker_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ test('minMax', function() {
TestHelpers.datepicker.equalsDate(inp.datepicker('getDate'), maxDate, 'Min/max - setDate > max');

inp.datepicker('option', {yearRange: '-0:+1'}).val('01/01/' + new Date().getFullYear());
ok(dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "previous button disabled");
ok(dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - previous button disabled at 1/1/minYear");
inp.datepicker("setDate", "12/30/" + new Date().getFullYear());
ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "next button disabled");
ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - next button disabled at 12/30/maxYear");
});

test('setDate', function() {
Expand Down

0 comments on commit d3f4ad2

Please sign in to comment.