mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Calendar tests: Fix min / max range header button state tests
This commit is contained in:
parent
3135e5bb37
commit
9c88ac943b
@ -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" );
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user