From: Alexander Hramov Date: Tue, 13 Mar 2012 09:49:37 +0000 (+0400) Subject: Tests for fixed localization of .calendar method X-Git-Tag: 1.5.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F203%2Fhead;p=thirdparty%2Fmoment.git Tests for fixed localization of .calendar method --- diff --git a/test/lang/ru.js b/test/lang/ru.js index aea37f58d..29c08f599 100644 --- a/test/lang/ru.js +++ b/test/lang/ru.js @@ -199,7 +199,7 @@ exports["lang:ru"] = { var m; function makeFormat(d) { - return d.day() === 1 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT'; + return d.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT'; } for (i = 2; i < 7; i++) { @@ -223,12 +223,14 @@ exports["lang:ru"] = { function makeFormat(d) { switch (d.day()) { case 0: + return '[В прошлое] dddd [в] LT'; case 1: - case 3: + case 2: + case 4: return '[В прошлый] dddd [в] LT'; + case 3: + case 5: case 6: - return '[В прошлое] dddd [в] LT'; - default: return '[В прошлую] dddd [в] LT'; } }