diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-06-13 11:43:12 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-13 11:43:12 -0700 |
commit | 9d9f23727031e3f1576bae44d0586c72842afbf3 (patch) | |
tree | 2cecd1c7eddd529a8dd5dd1719bf6c947840a99f /core/tests | |
parent | bd3e537980027f4502a13c204b3c7b9d10adad31 (diff) | |
parent | 7a736fbf69dd6f03db968d7d8182024eebc0e508 (diff) | |
download | frameworks_base-9d9f23727031e3f1576bae44d0586c72842afbf3.zip frameworks_base-9d9f23727031e3f1576bae44d0586c72842afbf3.tar.gz frameworks_base-9d9f23727031e3f1576bae44d0586c72842afbf3.tar.bz2 |
Merge "Update Configuration for renaming and fixes"
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/coretests/src/android/content/res/ConfigurationTest.java | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/core/tests/coretests/src/android/content/res/ConfigurationTest.java b/core/tests/coretests/src/android/content/res/ConfigurationTest.java index f1f745e..54a5e4e 100644 --- a/core/tests/coretests/src/android/content/res/ConfigurationTest.java +++ b/core/tests/coretests/src/android/content/res/ConfigurationTest.java @@ -30,169 +30,169 @@ public class ConfigurationTest extends AndroidTestCase { args = {Locale.class} ) public void testGetLayoutDirectionFromLocale() { - assertEquals(Configuration.LAYOUT_DIRECTION_UNDEFINED, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_UNDEFINED_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(null)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.ENGLISH)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.CANADA)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.CANADA_FRENCH)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.FRANCE)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.FRENCH)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.GERMAN)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.GERMANY)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.ITALIAN)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.ITALY)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.UK)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.US)); - assertEquals(Configuration.LAYOUT_DIRECTION_UNDEFINED, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_UNDEFINED_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.ROOT)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.CHINA)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.CHINESE)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.JAPAN)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.JAPANESE)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.KOREA)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.KOREAN)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.PRC)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.SIMPLIFIED_CHINESE)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.TAIWAN)); - assertEquals(Configuration.LAYOUT_DIRECTION_LTR, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(Locale.TRADITIONAL_CHINESE)); Locale locale = new Locale("ar"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "AE"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "BH"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "DZ"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "EG"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "IQ"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "JO"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "KW"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "LB"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "LY"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "MA"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "OM"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "QA"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "SA"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "SD"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "SY"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "TN"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ar", "YE"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("fa"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("fa", "AF"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("fa", "IR"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("iw"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("iw", "IL"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("he"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("he", "IL"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); // The following test will not pass until we are able to take care about the scrip subtag // thru having the "likelySubTags" file into ICU4C // locale = new Locale("pa_Arab"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); // locale = new Locale("pa_Arab", "PK"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ps"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); locale = new Locale("ps", "AF"); - assertEquals(Configuration.LAYOUT_DIRECTION_RTL, + assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, Configuration.getLayoutDirectionFromLocale(locale)); // The following test will not work as the localized display name would be "Urdu" with ICU 4.4 // We will need ICU 4.6 to get the correct localized display name // locale = new Locale("ur"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); // locale = new Locale("ur", "IN"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); // locale = new Locale("ur", "PK"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); // The following test will not pass until we are able to take care about the scrip subtag // thru having the "likelySubTags" file into ICU4C // locale = new Locale("uz_Arab"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); // locale = new Locale("uz_Arab", "AF"); -// assertEquals(Configuration.LAYOUT_DIRECTION_RTL, +// assertEquals(Configuration.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE, // Configuration.getLayoutDirectionFromLocale(locale)); } } |