diff options
author | Fredrik Roubert <roubert@google.com> | 2016-07-04 19:40:37 +0200 |
---|---|---|
committer | Nikita Iashchenko <nikitai@google.com> | 2019-12-19 14:52:20 +0000 |
commit | 0ed4e0a8ea6f60126a69400a71892e48e1333a9d (patch) | |
tree | f552f1819a5489a99d6a6e09322762d1ca53935a /icu4j/main/tests | |
parent | eaf00ff171461e68e5f6285c5b7c98e342a2c24d (diff) | |
download | icu-0ed4e0a8ea6f60126a69400a71892e48e1333a9d.tar.gz |
Android patch: CLDR data: Add data for the XA/XB pseudo locales.
This CL adds pseudo locales used in some tests and excludes them from
com.ibm.icu.dev.test.format.DateTimeGeneratorTest#testJjMapping because
they are not real locales.
https://android.googlesource.com/platform/external/icu/+/338b5d35fdb86a9c4cb0ed59a67416693a0fe1e4
Test: n/a
Change-Id: I3b15004b8d1d764d67abe442000aeb2cbb969c97
Diffstat (limited to 'icu4j/main/tests')
-rw-r--r-- | icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java index 767bb60ef..6399f3300 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java @@ -1709,6 +1709,12 @@ public class DateTimeGeneratorTest extends TestFmwk { ULocale[] locales = DateFormat.getAvailableULocales(); for (ULocale locale: locales) { String localeID = locale.getName(); + // BEGIN Android-added: Exclude pseudo locales since they are not present in CLDR data. + if (localeID.endsWith("_XA") || localeID.endsWith("_XB")) { + // skip pseudo-locales + continue; + } + // END Android-added: Exclude pseudo locales since they are not present in CLDR data. DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(locale); DateFormat dfmt = DateFormat.getTimeInstance(DateFormat.SHORT, locale); String shortPattern = ((SimpleDateFormat)dfmt).toPattern(); |