Skip to content

Commit 4226fae

Browse files
committed
Datpicker: Fixed some failing tests.
1 parent 7832fd8 commit 4226fae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/unit/datepicker/datepicker_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ test('localisation', function() {
710710
equals($('.ui-datepicker-close', dp).text(), 'Fermer', 'Localisation - close');
711711
$('.ui-datepicker-close', dp).simulate('mouseover');
712712
equals($('.ui-datepicker-prev', dp).text(), '<Préc', 'Localisation - previous');
713-
equals($('.ui-datepicker-current', dp).text(), 'Courant', 'Localisation - current');
713+
equals($('.ui-datepicker-current', dp).text(), 'Aujourd\'hui', 'Localisation - current');
714714
equals($('.ui-datepicker-next', dp).text(), 'Suiv>', 'Localisation - next');
715715
var month = 0;
716716
$('.ui-datepicker-month option', dp).each(function() {

tests/unit/datepicker/datepicker_tickets.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ test('beforeShowDay-getDate', function() {
1515
var inp = init('#inp', {beforeShowDay: function(date) { inp.datepicker('getDate'); return [true, '']; }});
1616
var dp = $('#ui-datepicker-div');
1717
inp.val('01/01/2010').datepicker('show');
18-
// result has line-break instead of space inbetween, therefore comparsion fails
19-
equals($('div.ui-datepicker-title').text(), 'January 2010', 'Initial month');
18+
// contains non-breaking space
19+
equals($('div.ui-datepicker-title').text(), 'January 2010', 'Initial month');
2020
$('a.ui-datepicker-next', dp).click();
2121
$('a.ui-datepicker-next', dp).click();
22-
// fails, see above
23-
equals($('div.ui-datepicker-title').text(), 'March 2010', 'After next clicks');
22+
// contains non-breaking space
23+
equals($('div.ui-datepicker-title').text(), 'March 2010', 'After next clicks');
2424
inp.datepicker('hide').datepicker('show');
2525
$('a.ui-datepicker-prev', dp).click();
2626
$('a.ui-datepicker-prev', dp).click();
27-
// fails, see above
28-
equals($('div.ui-datepicker-title').text(), 'November 2009', 'After prev clicks');
27+
// contains non-breaking space
28+
equals($('div.ui-datepicker-title').text(), 'November 2009', 'After prev clicks');
2929
inp.datepicker('hide');
3030
});
3131

0 commit comments

Comments
 (0)