From b39bb7250e8d462f7cd031b6b5845ff0e0765998 Mon Sep 17 00:00:00 2001 From: Rafael Xavier de Souza Date: Thu, 4 Sep 2014 16:04:04 -0300 Subject: [PATCH] Datepicker: Use Globalize 1.0.0 - Remove unneeded territory DE from de-DE locale; --- tests/unit/calendar/core.js | 4 ++-- tests/unit/date/core.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/calendar/core.js b/tests/unit/calendar/core.js index 92753748f..c35eff4eb 100644 --- a/tests/unit/calendar/core.js +++ b/tests/unit/calendar/core.js @@ -116,14 +116,14 @@ test( "Localization", function() { ); }; - Globalize.locale( "de-DE" ); + Globalize.locale( "de" ); initCalendar(); testLocalization( "Init: " ); element.calendar( "destroy" ); Globalize.locale( defaultLocale.locale ); initCalendar(); - Globalize.locale( "de-DE" ); + Globalize.locale( "de" ); element.calendar( "refresh" ); testLocalization( "After init: " ); diff --git a/tests/unit/date/core.js b/tests/unit/date/core.js index e6dc16dcf..d5895a91d 100644 --- a/tests/unit/date/core.js +++ b/tests/unit/date/core.js @@ -89,7 +89,7 @@ test( "List days of Week", 2, function() { ]; deepEqual( date.weekdays(), offset0, "Get weekdays with start of day on 0 (English)" ); - Globalize.locale( "de-DE" ); + Globalize.locale( "de" ); deepEqual( date.weekdays(), offset1, "Get weekdays with start of day on 1 (Germany)" ); // Revert Globalize changes back to English @@ -119,7 +119,7 @@ test( "Days in Month", 3, function() { test( "Month Name", 2, function() { var date = $.date(); equal( date.setMonth( 3 ).monthName(), "April", "Month name return April (English)" ); - Globalize.locale( "de-DE" ); + Globalize.locale( "de" ); equal( date.setMonth( 2 ).monthName(), "März", "Month name return March (German)" ); Globalize.locale( "en" ); }); -- 2.39.5