]> source.dussan.org Git - jquery-ui.git/commitdiff
Calendar tests: Fix min / max range header button state tests
authorFelix Nagel <info@felixnagel.com>
Wed, 26 Aug 2015 10:06:20 +0000 (12:06 +0200)
committerFelix Nagel <info@felixnagel.com>
Thu, 10 Sep 2015 21:21:24 +0000 (23:21 +0200)
tests/unit/calendar/options.js

index 202b497d69a0c26247202fb8c721645b59d5b77b..86eb6492f4bfe61a8503f47193d12bf60014e420 100644 (file)
@@ -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" );
 });