summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-09-28 09:53:41 -0700
committerElliott Hughes <enh@google.com>2010-09-28 09:53:41 -0700
commitc4823abbed65fe80790ad215d6b96679c25b3f68 (patch)
treeeea71b4922ef29e97d9dda5022eb71303c8e1d98 /luni
parenta8bc3bd2794b36c5e935aff7b932a7945e98bf30 (diff)
downloadlibcore-c4823abbed65fe80790ad215d6b96679c25b3f68.zip
libcore-c4823abbed65fe80790ad215d6b96679c25b3f68.tar.gz
libcore-c4823abbed65fe80790ad215d6b96679c25b3f68.tar.bz2
Add submitter's test for a publicly-reported SimpleTimeZone.clone bug I already fixed.
Bug: http://code.google.com/p/android/issues/detail?id=11542 Change-Id: Ic13e6083ec26e9d8725e94294f7cd69902e69dd8
Diffstat (limited to 'luni')
-rw-r--r--luni/src/test/java/libcore/java/util/TimeZoneTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/luni/src/test/java/libcore/java/util/TimeZoneTest.java b/luni/src/test/java/libcore/java/util/TimeZoneTest.java
index 1155ff6..dbde4ac 100644
--- a/luni/src/test/java/libcore/java/util/TimeZoneTest.java
+++ b/luni/src/test/java/libcore/java/util/TimeZoneTest.java
@@ -16,7 +16,9 @@
package libcore.java.util;
+import java.util.Date;
import java.util.TimeZone;
+import java.util.SimpleTimeZone;
public class TimeZoneTest extends junit.framework.TestCase {
// http://code.google.com/p/android/issues/detail?id=877
@@ -30,4 +32,12 @@ public class TimeZoneTest extends junit.framework.TestCase {
TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik");
assertFalse("Reykjavik doesn't use DST", atlanticReykjavik.useDaylightTime());
}
+
+ // http://code.google.com/p/android/issues/detail?id=11542
+ public void test_clone_SimpleTimeZone() {
+ SimpleTimeZone stz = new SimpleTimeZone(21600000, "Central Standard Time");
+ stz.setStartYear(1000);
+ stz.inDaylightTime(new Date());
+ stz.clone();
+ }
}