diff options
author | 2014-01-16 04:32:32 +0900 | |
---|---|---|
committer | 2014-01-17 02:06:24 +0900 | |
commit | 60afa7000f14f8f8ca890236f636d45a2b59b61e (patch) | |
tree | 4b86a8acc51571e0d1319c697f7cd943a3f658de /tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java | |
parent | cdeeadf5caf00dd7cc73ebdd6f7196e96a76df00 (diff) | |
download | latinime-60afa7000f14f8f8ca890236f636d45a2b59b61e.tar.gz latinime-60afa7000f14f8f8ca890236f636d45a2b59b61e.tar.xz latinime-60afa7000f14f8f8ca890236f636d45a2b59b61e.zip |
Fix a bug specific to German capitalization.
Bug: 9663105
Change-Id: Ib68ee4edb135e96dfca229c1ccce308e7e638bdd
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java b/tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java index 40a103b84..020d63299 100644 --- a/tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java +++ b/tests/src/com/android/inputmethod/latin/utils/CapsModeUtilsTests.java @@ -94,5 +94,20 @@ public class CapsModeUtilsTests extends AndroidTestCase { allPathsForCaps("\"Word.\" ", c | w, sp, false); allPathsForCaps("\"Word\". ", c | w | s, sp, false); allPathsForCaps("\"Word\" ", c | w, sp, false); + + // Test special case for German. German does not capitalize at the start of a + // line when the previous line starts with a comma. It does in other cases. + sp = job.runInLocale(res, Locale.GERMAN); + allPathsForCaps("Liebe Sara,\n", c | w, sp, false); + allPathsForCaps("Liebe Sara,\n", c | w, sp, true); + allPathsForCaps("Liebe Sara, \n ", c | w, sp, false); + allPathsForCaps("Liebe Sara \n ", c | w | s, sp, false); + allPathsForCaps("Liebe Sara.\n ", c | w | s, sp, false); + sp = job.runInLocale(res, Locale.ENGLISH); + allPathsForCaps("Liebe Sara,\n", c | w | s, sp, false); + allPathsForCaps("Liebe Sara,\n", c | w | s, sp, true); + allPathsForCaps("Liebe Sara, \n ", c | w | s, sp, false); + allPathsForCaps("Liebe Sara \n ", c | w | s, sp, false); + allPathsForCaps("Liebe Sara.\n ", c | w | s, sp, false); } } |