OSDN Git Service

b/2377547 Fixed a test hard codes the "current year". So come happy new year and...
authorMichael Chan <mchan@android.com>
Wed, 20 Jan 2010 22:39:40 +0000 (14:39 -0800)
committerMichael Chan <mchan@android.com>
Wed, 20 Jan 2010 22:39:40 +0000 (14:39 -0800)
Change-Id: I4f8731cc8c23965e87a01fe1132b0478ee5713ad

tests/src/com/android/calendar/FormatDateRangeTest.java

index 548fc1c..38d6bc0 100644 (file)
@@ -172,7 +172,7 @@ public class FormatDateRangeTest extends AndroidTestCase {
             new DateTest(
                     Calendar.getInstance().get(Calendar.YEAR) - 1, 0, 3, 13, 0,
                     DateUtils.FORMAT_SHOW_DATE,
-                    "January 3, 2008"),
+                    "January 3, " + (Calendar.getInstance().get(Calendar.YEAR) - 1)),
     };
 
     @Override