OSDN Git Service

Add a regression test for another DST-less locale.
authorElliott Hughes <enh@google.com>
Wed, 28 Apr 2010 20:05:11 +0000 (13:05 -0700)
committerElliott Hughes <enh@google.com>
Wed, 28 Apr 2010 20:05:11 +0000 (13:05 -0700)
Bug: http://code.google.com/p/android/issues/detail?id=8016
Change-Id: I260760ebc37251ccff766b78d22853d961a2694f

libcore/luni/src/test/java/java/util/TimeZoneTest.java

index ec4879f..0ef4c5f 100644 (file)
@@ -21,8 +21,14 @@ import junit.framework.TestSuite;
 
 public class TimeZoneTest extends junit.framework.TestCase {
     // http://code.google.com/p/android/issues/detail?id=877
-    public void test_useDaylightTime() {
+    public void test_useDaylightTime_Taiwan() {
         TimeZone asiaTaipei = TimeZone.getTimeZone("Asia/Taipei");
         assertFalse("Taiwan doesn't use DST", asiaTaipei.useDaylightTime());
     }
+
+    // http://code.google.com/p/android/issues/detail?id=8016
+    public void test_useDaylightTime_Iceland() {
+        TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik");
+        assertFalse("Reykjavik doesn't use DST", atlanticReykjavik.useDaylightTime());
+    }
 }