diff options
author | Elliott Hughes <enh@google.com> | 2013-03-07 14:30:17 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-03-07 14:30:17 -0800 |
commit | 025148cc4de9c1104a30333c14eb63337af4e3de (patch) | |
tree | bf05568cd4a8a04781bf10e4832c3982f2bcaea1 /core | |
parent | 011b8efce194529de82e94fd0c0bf29835b9f07a (diff) | |
download | frameworks_base-025148cc4de9c1104a30333c14eb63337af4e3de.zip frameworks_base-025148cc4de9c1104a30333c14eb63337af4e3de.tar.gz frameworks_base-025148cc4de9c1104a30333c14eb63337af4e3de.tar.bz2 |
Explain why the frameworks/base DateUtilsTest isn't merged with CTS' DateUtilsTest.
Change-Id: Icbdb4e9133a9ae1c1b37f822367e1ac86e9e36cb
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/coretests/src/android/text/format/DateUtilsTest.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/tests/coretests/src/android/text/format/DateUtilsTest.java b/core/tests/coretests/src/android/text/format/DateUtilsTest.java index cf42bb1..c5f6236 100644 --- a/core/tests/coretests/src/android/text/format/DateUtilsTest.java +++ b/core/tests/coretests/src/android/text/format/DateUtilsTest.java @@ -21,8 +21,9 @@ import android.test.suitebuilder.annotation.SmallTest; import junit.framework.TestCase; public class DateUtilsTest extends TestCase { + // This test is not in CTS because formatDuration is @hidden. @SmallTest - public void testFormatDurationSeconds() throws Exception { + public void test_formatDuration_seconds() throws Exception { assertEquals("0 seconds", DateUtils.formatDuration(0)); assertEquals("0 seconds", DateUtils.formatDuration(1)); assertEquals("0 seconds", DateUtils.formatDuration(499)); @@ -31,16 +32,18 @@ public class DateUtilsTest extends TestCase { assertEquals("2 seconds", DateUtils.formatDuration(1500)); } + // This test is not in CTS because formatDuration is @hidden. @SmallTest - public void testFormatDurationMinutes() throws Exception { + public void test_formatDuration_Minutes() throws Exception { assertEquals("59 seconds", DateUtils.formatDuration(59000)); assertEquals("60 seconds", DateUtils.formatDuration(59500)); assertEquals("1 minute", DateUtils.formatDuration(60000)); assertEquals("2 minutes", DateUtils.formatDuration(120000)); } + // This test is not in CTS because formatDuration is @hidden. @SmallTest - public void testFormatDurationHours() throws Exception { + public void test_formatDuration_Hours() throws Exception { assertEquals("59 minutes", DateUtils.formatDuration(3540000)); assertEquals("1 hour", DateUtils.formatDuration(3600000)); assertEquals("48 hours", DateUtils.formatDuration(172800000)); |