From 9c88ac943b279b814939202695fe317d814705ab Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 26 Aug 2015 12:06:20 +0200 Subject: [PATCH] Calendar tests: Fix min / max range header button state tests --- tests/unit/calendar/options.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/calendar/options.js b/tests/unit/calendar/options.js index 202b497d6..86eb6492f 100644 --- a/tests/unit/calendar/options.js +++ b/tests/unit/calendar/options.js @@ -251,12 +251,12 @@ test( "min / max", function() { element .calendar( "option", { max: null } ) - .calendar( "value", "1/4/15" ) - .calendar( "option", { max: maxDate } ); + .calendar( "value", "1/4/09" ) + .calendar( "option", { min: minDate, max: maxDate } ); ok( nextButton.hasClass( "ui-state-disabled" ), "Other year: Next button disabled" ); - nextButton.simulate( "click" ); + prevButton.simulate( "click" ); ok( nextButton.hasClass( "ui-state-disabled" ), "Other year: Next button disabled after click" ); - nextButton.simulate( "click" ); + prevButton.simulate( "click" ); ok( !nextButton.hasClass( "ui-state-disabled" ), "Other year: Next button enabled after click" ); }); -- 2.39.5