aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-06-25 11:40:29 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-06-25 11:40:29 +0900
commit52cef1321140190d4fd248b7da26296f89f89659 (patch)
treed3e3cfd1459627e5a64557a663025934a472286c /tests/src/com/android/inputmethod/latin/InputLogicTests.java
parent702e153fbc28d54aeb2ded40b9f3f31c1fd154e9 (diff)
downloadlatinime-52cef1321140190d4fd248b7da26296f89f89659.tar.gz
latinime-52cef1321140190d4fd248b7da26296f89f89659.tar.xz
latinime-52cef1321140190d4fd248b7da26296f89f89659.zip
Fix: unit tests by clearing personalized dicts
Bug: 14119293 Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTests.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
index 460f600ac..2709ecba6 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
@@ -482,6 +482,7 @@ public class InputLogicTests extends InputTestsBase {
}
public void testPredictionsWithDoubleSpaceToPeriod() {
+ mLatinIME.clearPersonalizedDictionariesForTest();
final String WORD_TO_TYPE = "Barack ";
type(WORD_TO_TYPE);
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
@@ -517,6 +518,7 @@ public class InputLogicTests extends InputTestsBase {
}
public void testNoPredictionsAfterPeriod() {
+ mLatinIME.clearPersonalizedDictionariesForTest();
final String WORD_TO_TYPE = "Barack. ";
type(WORD_TO_TYPE);
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);