Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
fracmak committed Nov 13, 2012
1 parent d3f4ad2 commit 43dc1ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/datepicker/datepicker_options.js
Expand Up @@ -325,7 +325,7 @@ test('minMax', function() {
expect( 19 ); expect( 19 );
var date, var date,
inp = TestHelpers.datepicker.init('#inp'), inp = TestHelpers.datepicker.init('#inp'),
dp = $('#ui-datepicker-div'), dp = $('#ui-datepicker-div'),
lastYear = new Date(2007, 6 - 1, 4), lastYear = new Date(2007, 6 - 1, 4),
nextYear = new Date(2009, 6 - 1, 4), nextYear = new Date(2009, 6 - 1, 4),
minDate = new Date(2008, 2 - 1, 29), minDate = new Date(2008, 2 - 1, 29),
Expand Down Expand Up @@ -406,10 +406,10 @@ test('minMax', function() {
inp.datepicker('option', {maxDate: null}).val('01/04/2009').datepicker('option', {minDate: minDate, maxDate: maxDate}); inp.datepicker('option', {maxDate: null}).val('01/04/2009').datepicker('option', {minDate: minDate, maxDate: maxDate});
TestHelpers.datepicker.equalsDate(inp.datepicker('getDate'), maxDate, 'Min/max - setDate > max'); TestHelpers.datepicker.equalsDate(inp.datepicker('getDate'), maxDate, 'Min/max - setDate > max');


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


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

0 comments on commit 43dc1ac

Please sign in to comment.