From 4226faed099391997021ac85db0735e80aaf5e33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 5 Nov 2010 10:44:55 -0400 Subject: [PATCH] Datpicker: Fixed some failing tests. --- tests/unit/datepicker/datepicker_options.js | 2 +- tests/unit/datepicker/datepicker_tickets.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js index 2769bc582..b10fd95ae 100644 --- a/tests/unit/datepicker/datepicker_options.js +++ b/tests/unit/datepicker/datepicker_options.js @@ -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(), '', 'Localisation - next'); var month = 0; $('.ui-datepicker-month option', dp).each(function() { diff --git a/tests/unit/datepicker/datepicker_tickets.js b/tests/unit/datepicker/datepicker_tickets.js index 85598f949..d00dc912c 100644 --- a/tests/unit/datepicker/datepicker_tickets.js +++ b/tests/unit/datepicker/datepicker_tickets.js @@ -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'); }); -- 2.39.5