Skip to content
Permalink
Browse files

Fixed #3859 - Datepicker can't pick years before 1999

  • Loading branch information
Keith Wood
Keith Wood committed Jan 19, 2009
1 parent 9b11687 commit 56b1f93434ffbb0928a238209a9e88b5a22e3524
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/datepicker/datepicker.js
@@ -748,9 +748,9 @@ test('miscellaneous', function() {
inp.val('02/04/2008').datepicker('show');
equals(dp.find('.ui-datepicker-year').text(), '2008', 'Year range - read-only default');
inp.datepicker('hide').datepicker('option', {changeYear: true}).datepicker('show');
equals(dp.find('.ui-datepicker-year').text(), genRange(new Date().getFullYear() - 10, 21), 'Year range - changeable default');
equals(dp.find('.ui-datepicker-year').text(), genRange(2008 - 10, 21), 'Year range - changeable default');
inp.datepicker('hide').datepicker('option', {yearRange: '-6:+2', changeYear: true}).datepicker('show');
equals(dp.find('.ui-datepicker-year').text(), genRange(new Date().getFullYear() - 6, 9), 'Year range - -6:+2');
equals(dp.find('.ui-datepicker-year').text(), genRange(2008 - 6, 9), 'Year range - -6:+2');
inp.datepicker('hide').datepicker('option', {yearRange: '2000:2010', changeYear: true}).datepicker('show');
equals(dp.find('.ui-datepicker-year').text(), genRange(2000, 11), 'Year range - 2000:2010');

0 comments on commit 56b1f93

Please sign in to comment.
You can’t perform that action at this time.