am 230b343e: Merge "Quit using try catch in addAndWriteRandomWords."
* commit '230b343e8cb8b62b3779967d030a1c90c17d1ee3': Quit using try catch in addAndWriteRandomWords.main
commit
4a7254e12e
|
@ -213,13 +213,9 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
|
||||||
|
|
||||||
final int numberOfWords = 1000;
|
final int numberOfWords = 1000;
|
||||||
final Random random = new Random(123456);
|
final Random random = new Random(123456);
|
||||||
|
clearHistory(dict);
|
||||||
try {
|
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
||||||
clearHistory(dict);
|
checkExistenceAndRemoveDictFile(dict, dictFile);
|
||||||
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
|
||||||
} finally {
|
|
||||||
checkExistenceAndRemoveDictFile(dict, dictFile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testStressTestForSwitchingLanguagesAndAddingWords() {
|
public void testStressTestForSwitchingLanguagesAndAddingWords() {
|
||||||
|
|
Loading…
Reference in New Issue