Home | History | Annotate | Download | only in intltest

Lines Matching defs:zone

81     SimpleTimeZone *zone = new SimpleTimeZone(offset, id);
82 if (zone->useDaylightTime()) errln("FAIL: useDaylightTime should return FALSE");
84 TimeZone* zoneclone = zone->clone();
85 if (!(*zoneclone == *zone)) errln("FAIL: clone or operator== failed");
87 if (!(*zoneclone != *zone)) errln("FAIL: clone or operator!= failed");
90 zoneclone = zone->clone();
91 if (!(*zoneclone == *zone)) errln("FAIL: clone or operator== failed");
93 if (!(*zoneclone != *zone)) errln("FAIL: clone or operator!= failed");
95 SimpleTimeZone copy(*zone);
96 if (!(copy == *zone)) errln("FAIL: copy constructor or operator== failed");
121 TimeZone::adoptDefault(zone);
123 if (defaultzone == zone ||
124 !(*defaultzone == *zone))
153 SimpleTimeZone *zone = new SimpleTimeZone((int32_t)offset, "TestZone");
154 if (zone->useDaylightTime()) errln("FAIL: useDaylightTime should return FALSE");
158 GregorianCalendar *gc = new GregorianCalendar(*zone, status);
172 zone->setStartRule(UCAL_MARCH, 1, 0, startHour, status);
173 zone->setEndRule (UCAL_JULY, 1, 0, endHour, status);
176 gc = new GregorianCalendar(*zone, status);
200 testUsingBinarySearch(*zone, date(90, UCAL_JANUARY, 1), date(90, UCAL_JUNE, 15), marchOne);
201 testUsingBinarySearch(*zone, date(90, UCAL_JUNE, 1), date(90, UCAL_DECEMBER, 31), julyOne);
203 if (zone->inDaylightTime(marchOne - 1000, status) ||
204 !zone->inDaylightTime(marchOne, status))
206 if (!zone->inDaylightTime(julyOne - 1000, status) ||
207 zone->inDaylightTime(julyOne, status))
210 zone->setStartYear(1991);
211 if (zone->inDaylightTime(marchOne, status) ||
212 zone->inDaylightTime(julyOne - 1000, status))
217 delete zone;
433 * zone, the last zone, and one in-between. This tests the binary
434 * search through the system zone data.
447 *id + ") -> zone " + str);
512 * the list of compatibility zone IDs exist and are somewhat
514 * bit further -- it hard-codes expectations about zone behavior,
517 * latest Olson zone data, but if a zone tested here changes, then
532 * Certain short zone IDs, used since 1.1.x, are incorrect.
537 * zone at GMT-1:00. The zone at GMT-1:00 should be called EGT, CVT, EGST,
538 * or AZOST, depending on which zone is meant, but in no case is it CAT.
540 * Other wrong zone IDs:
581 * + A zone with the correct name already exists and means something
582 * else. E.g., EST usually indicates the US Eastern zone, so it cannot be
604 // in the time zone in the current calendar year. The test
687 errln("FAIL: Time Zone " + itsID + " does not exist!");
695 logln("Warning: Time Zone " + itsID + " use daylight is " +
700 errln("FAIL: Time Zone " + itsID + " use daylight is " +
712 logln("FAIL: Time Zone " + itsID + " raw offset is " +
716 errln("FAIL: Time Zone " + itsID + " raw offset is " +
750 // EET Europe/Istanbul # EET is a standard UNIX zone
756 // MET Asia/Tehran # MET is a standard UNIX zone
781 errln(UnicodeString("FAIL: Could not find short ID zone ") + zone1);
784 errln(UnicodeString("FAIL: Could not find long ID zone ") + zone2);
851 * Utility function for TestCustomParse, generating time zone ID
946 TimeZone *zone = TimeZone::createTimeZone(id);
949 if (zone->getDynamicClassID() == OlsonTimeZone::getStaticClassID()) {
950 logln(id + " -> Olson time zone");
952 zone->getID(itsID);
953 int32_t ioffset = zone->getRawOffset()/1000;
974 delete zone;
1166 TimeZone *zone = TimeZone::createTimeZone("PST");
1168 zone->getDisplayName(Locale::getEnglish(), name);
1195 name = zone->getDisplayName(kData[i].useDst,
1205 name = zone->getDisplayName(kData[i].useDst,
1214 // PST zone that has DST all year long.
1241 name = zone->getDisplayName(mt_MT,name);
1281 // Now try a non-existent zone
1301 delete zone;
1325 errln("Test time zone should use DST but claims it doesn't.");
1606 // Time zone with daylight savings time from the first Sunday in November
1639 // Gregorian calendar with the UTC time zone for getting sample test date/times.
1649 // Expected time zone offset in hours after GMT (negative=before GMT).
1716 const char *zone;
1780 tmpCanonical = excluded1[k].zone;
1865 // zone id locale summer format expected display name
1914 TimeZone *zone = TimeZone::createTimeZone(zoneDisplayTestData[testNum].zoneName);
1916 zone->getDisplayName(zoneDisplayTestData[testNum].summerTime,
1926 dataerrln("Incorrect time zone display name. zone = \"%s\",\n"
1938 logln("Incorrect time zone display name. zone = \"%s\",\n"
1950 delete zone;