Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0678bae0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add additional tests for Algiers and Ceuta timezones"

parents ba78471f 402da436
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ import static junit.framework.Assert.assertTrue;
public class ZoneGetterTest {
    private static final String TIME_ZONE_LONDON_ID = "Europe/London";
    private static final String TIME_ZONE_LA_ID = "America/Los_Angeles";
    private static final String TIME_ZONE_ALGIERS_ID = "Africa/Algiers";
    private static final String TIME_ZONE_CEUTA_ID = "Africa/Ceuta";
    private Locale mLocaleEnUs;
    private Calendar mCalendar;

@@ -58,6 +60,16 @@ public class ZoneGetterTest {
        testTimeZoneOffsetAndNameInner(TIME_ZONE_LA_ID, "Pacific Daylight Time");
    }

    @Test
    public void getTimeZoneOffsetAndName_setAlgiers_returnCentralEuropeanStandardTime() {
        testTimeZoneOffsetAndNameInner(TIME_ZONE_ALGIERS_ID, "Central European Standard Time");
    }

    @Test
    public void getTimeZoneOffsetAndName_setCeuta_returnCentralEuropeanSummerTime() {
        testTimeZoneOffsetAndNameInner(TIME_ZONE_CEUTA_ID, "Central European Summer Time");
    }

    @Test
    public void getZonesList_checkTypes() {
        final List<Map<String, Object>> zones =