LatinIME/tests/src/com/android/inputmethod/latin
Jean Chalard 5f41b705fc Fix a bug with the whitelist
This bug would kill the case where the whitelist contains
a word to be autocorrected to an uppercased version of
itself, and the user would enter the uppercase version.
In this case, this bug would cause the typed word to be
killed off the list of candidates, and possibly autocorrected
to the *next* candidate.

When the whitelist checks whether this the typed word is
a candidate for whitelisting, this change has it check whether
the whitelisting results in the typed word before returning.
Hence, it can keep the case-insensitive behavior of the
whitelist.

Coincidentally, this change renames the method used to do
this, because it does not comply with the general contract
of Dictionary. This happens to be in the way of another
upcoming change.

Bug: 5420371
Change-Id: Ifb305271acc5f171adf9b18c762ae7975b14be0a
2011-10-07 18:40:23 +09:00
..
EditDistanceTests.java Remove LatinIME prefix from classes 2010-12-09 21:54:51 +09:00
SubtypeLocaleTests.java Move locale-related utility methods to LocaleUtils. 2011-08-29 12:29:35 +09:00
SuggestHelper.java Fix a bug with the whitelist 2011-10-07 18:40:23 +09:00
SuggestTests.java Make the whitelist an instanciable class. 2011-10-06 16:05:21 +09:00
SuggestTestsBase.java Add orientation to regression tests 2011-08-01 00:18:45 -07:00
UserBigramSuggestHelper.java Make the whitelist an instanciable class. 2011-10-06 16:05:21 +09:00
UserBigramSuggestTests.java Make the whitelist an instanciable class. 2011-10-06 16:05:21 +09:00
UtilsTests.java Use user-history bigrams when no input if available. 2011-04-22 15:46:23 +09:00