From 56b1f93434ffbb0928a238209a9e88b5a22e3524 Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Mon, 19 Jan 2009 10:33:45 +0000 Subject: [PATCH] Fixed #3859 - Datepicker can't pick years before 1999 --- tests/unit/datepicker/datepicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/datepicker/datepicker.js b/tests/unit/datepicker/datepicker.js index dadb5a997..ef3230709 100644 --- a/tests/unit/datepicker/datepicker.js +++ b/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');