From 52cef1321140190d4fd248b7da26296f89f89659 Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Wed, 25 Jun 2014 11:40:29 +0900 Subject: [PATCH] Fix: unit tests by clearing personalized dicts Bug: 14119293 Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e --- tests/src/com/android/inputmethod/latin/InputLogicTests.java | 2 ++ 1 file changed, 2 insertions(+) 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);