Skip to content

Commit

Permalink
Datpicker: Fixed some failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Nov 5, 2010
1 parent 7832fd8 commit 4226fae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/unit/datepicker/datepicker_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ test('localisation', function() {
equals($('.ui-datepicker-close', dp).text(), 'Fermer', 'Localisation - close');
$('.ui-datepicker-close', dp).simulate('mouseover');
equals($('.ui-datepicker-prev', dp).text(), '<Préc', 'Localisation - previous');
equals($('.ui-datepicker-current', dp).text(), 'Courant', 'Localisation - current');
equals($('.ui-datepicker-current', dp).text(), 'Aujourd\'hui', 'Localisation - current');
equals($('.ui-datepicker-next', dp).text(), 'Suiv>', 'Localisation - next');
var month = 0;
$('.ui-datepicker-month option', dp).each(function() {
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/datepicker/datepicker_tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ 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');
// contains non-breaking space
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');
// contains non-breaking space
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');
// contains non-breaking space
equals($('div.ui-datepicker-title').text(), 'November 2009', 'After prev clicks');
inp.datepicker('hide');
});

Expand Down

0 comments on commit 4226fae

Please sign in to comment.