aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-08-26 18:54:08 +0900
committerJean Chalard <jchalard@google.com>2014-08-26 20:35:59 +0900
commit8380f921f7edaeea2033a1e967a14941400fe246 (patch)
treedb2e7cd9758440158a6e4096be43161ca2481c5b /tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java
parentfdfe73ff1f4b8c9d7d8728baa322d70c3a74df99 (diff)
downloadlatinime-8380f921f7edaeea2033a1e967a14941400fe246.tar.gz
latinime-8380f921f7edaeea2033a1e967a14941400fe246.tar.xz
latinime-8380f921f7edaeea2033a1e967a14941400fe246.zip
Fix a bug where the top prediction would disappear.
This is because prediction can't be easily distinguished in style. This fixes the bug by simulating the right members, but some refactoring should be done to remove useless booleans. Bug: 17271923 Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java b/tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java
index 2cc22fae4..eb76032b1 100644
--- a/tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java
+++ b/tests/src/com/android/inputmethod/latin/settings/SpacingAndPunctuationsTests.java
@@ -429,7 +429,7 @@ public class SpacingAndPunctuationsTests extends AndroidTestCase {
assertFalse("willAutoCorrect", suggestedWords.mWillAutoCorrect);
assertTrue("isPunctuationSuggestions", suggestedWords.isPunctuationSuggestions());
assertFalse("isObsoleteSuggestions", suggestedWords.mIsObsoleteSuggestions);
- assertFalse("isPrediction", suggestedWords.mIsPrediction);
+ assertFalse("isPrediction", suggestedWords.isPrediction());
assertEquals("size", punctuationLabels.length, suggestedWords.size());
for (int index = 0; index < suggestedWords.size(); index++) {
assertEquals("punctuation label at " + index,