Skip to content
Permalink
Browse files

debug comment

  • Loading branch information
jzaefferer committed Mar 20, 2010
1 parent edcd682 commit d7b1044d6cb9a599667bc0056a81fae86b63463a
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/unit/datepicker/datepicker_tickets.js
@@ -15,13 +15,16 @@ test('beforeShowDay-getDate', function() {
var inp = init('#inp', {beforeShowDay: function(date) { inp.datepicker('getDate'); return [true, '']; }});
var dp = $('#ui-datepicker-div');
inp.val('01/01/2010').datepicker('show');
// result has line-break instead of space inbetween, therefore comparsion fails
equals($('div.ui-datepicker-title').text(), 'January 2010', 'Initial month');
$('a.ui-datepicker-next', dp).click();
$('a.ui-datepicker-next', dp).click();
// fails, see above
equals($('div.ui-datepicker-title').text(), 'March 2010', 'After next clicks');
inp.datepicker('hide').datepicker('show');
$('a.ui-datepicker-prev', dp).click();
$('a.ui-datepicker-prev', dp).click();
// fails, see above
equals($('div.ui-datepicker-title').text(), 'November 2009', 'After prev clicks');
inp.datepicker('hide');
});

0 comments on commit d7b1044

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