aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/datepicker
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2009-01-19 10:33:45 +0000
committerKeith Wood <kbwood.au@gmail.com>2009-01-19 10:33:45 +0000
commit56b1f93434ffbb0928a238209a9e88b5a22e3524 (patch)
treede0a6067511cc191cf80d7169e68c10c2b2662d7 /tests/unit/datepicker
parent9b116879328a1a3edfff0b1914871ca2595ecc30 (diff)
downloadjquery-ui-56b1f93434ffbb0928a238209a9e88b5a22e3524.tar.gz
jquery-ui-56b1f93434ffbb0928a238209a9e88b5a22e3524.zip
Fixed #3859 - Datepicker can't pick years before 1999
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r--tests/unit/datepicker/datepicker.js4
1 files 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');