Fix: unit tests by clearing personalized dicts

Bug: 14119293
Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
Keisuke Kuroyanagi 2014-06-25 11:40:29 +09:00
parent 702e153fbc
commit 52cef13211
1 changed files with 2 additions and 0 deletions

View File

@ -482,6 +482,7 @@ public class InputLogicTests extends InputTestsBase {
} }
public void testPredictionsWithDoubleSpaceToPeriod() { public void testPredictionsWithDoubleSpaceToPeriod() {
mLatinIME.clearPersonalizedDictionariesForTest();
final String WORD_TO_TYPE = "Barack "; final String WORD_TO_TYPE = "Barack ";
type(WORD_TO_TYPE); type(WORD_TO_TYPE);
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS); sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);
@ -517,6 +518,7 @@ public class InputLogicTests extends InputTestsBase {
} }
public void testNoPredictionsAfterPeriod() { public void testNoPredictionsAfterPeriod() {
mLatinIME.clearPersonalizedDictionariesForTest();
final String WORD_TO_TYPE = "Barack. "; final String WORD_TO_TYPE = "Barack. ";
type(WORD_TO_TYPE); type(WORD_TO_TYPE);
sleep(DELAY_TO_WAIT_FOR_PREDICTIONS); sleep(DELAY_TO_WAIT_FOR_PREDICTIONS);