Skip to content

Commit e6b7486

Browse files
committed
Datepicker: Fix a bad assertion - actual result is valid.
1 parent 6ba18b5 commit e6b7486

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/datepicker/datepicker_options.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ test('miscellaneous', function() {
265265
var curYear = new Date().getFullYear();
266266
inp.val('02/04/2008').datepicker('show');
267267
equals(dp.find('.ui-datepicker-year').text(), '2008', 'Year range - read-only default');
268-
inp.datepicker('hide').datepicker('option', {changeYear: true}).datepicker('show');
268+
inp.datepicker('hide').datepicker('option', {changeYear: true}).datepicker('show');
269269
equals(dp.find('.ui-datepicker-year').text(), genRange(2008 - 10, 21), 'Year range - changeable default');
270270
inp.datepicker('hide').datepicker('option', {yearRange: 'c-6:c+2', changeYear: true}).datepicker('show');
271271
equals(dp.find('.ui-datepicker-year').text(), genRange(2008 - 6, 9), 'Year range - c-6:c+2');
@@ -507,11 +507,11 @@ test('altField', function() {
507507
inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END});
508508
equals(inp.val(), '', 'Alt field - dp - ctrl+end');
509509
equals(alt.val(), '', 'Alt field - alt - ctrl+end');
510-
510+
511511
return
512512
// TODO manual entry impl works (see altField demo) but this test doesn't
513513
// probably something the rewrite won't cover anymore anyway
514-
514+
515515
// Verify alt field is updated on keyup
516516
alt.val('');
517517
inp.val('06/04/200').datepicker('show');
@@ -559,7 +559,7 @@ test('autoSize', function() {
559559
inp.datepicker('option', 'dateFormat', 'm/d/yy');
560560
equals(inp.prop('size'), 10, 'Auto size - he - m/d/yy');
561561
inp.datepicker('option', 'dateFormat', 'D M d yy');
562-
equals(inp.prop('size'), 14, 'Auto size - he - D M d yy');
562+
equals(inp.prop('size'), 16, 'Auto size - he - D M d yy');
563563
inp.datepicker('option', 'dateFormat', 'DD, MM dd, yy');
564564
equals(inp.prop('size'), 23, 'Auto size - he - DD, MM dd, yy');
565565
});

0 commit comments

Comments
 (0)