diff options
author | 2014-02-05 09:16:16 +0000 | |
---|---|---|
committer | 2014-02-05 09:16:17 +0000 | |
commit | b162911fa4131cf90cd8dbaef325717eec4defa6 (patch) | |
tree | 62a6695832eb2344a3cc3880a225c6dfc13283c9 /tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | |
parent | bbb6e8f10f6a73049fe1ecc81a9f60f23a9f8992 (diff) | |
parent | 43cf9076b2d053c554941e55f6073b8f586c510b (diff) | |
download | latinime-b162911fa4131cf90cd8dbaef325717eec4defa6.tar.gz latinime-b162911fa4131cf90cd8dbaef325717eec4defa6.tar.xz latinime-b162911fa4131cf90cd8dbaef325717eec4defa6.zip |
Merge "[HD04] Make the locale mandatory."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java index c41bbd768..7d664c825 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java @@ -28,6 +28,7 @@ import com.android.inputmethod.latin.makedict.FusionDictionary; import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode; import com.android.inputmethod.latin.makedict.UnsupportedFormatException; import com.android.inputmethod.latin.utils.FileUtils; +import com.android.inputmethod.latin.utils.LocaleUtils; import java.io.File; import java.io.IOException; @@ -104,15 +105,14 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase { FileUtils.deleteRecursively(file); Map<String, String> attributeMap = new HashMap<String, String>(); attributeMap.put(DictionaryHeader.DICTIONARY_ID_KEY, dictId); - attributeMap.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, dictId); attributeMap.put(DictionaryHeader.DICTIONARY_VERSION_KEY, String.valueOf(TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()))); attributeMap.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY, DictionaryHeader.ATTRIBUTE_VALUE_TRUE); attributeMap.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY, DictionaryHeader.ATTRIBUTE_VALUE_TRUE); - if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(), - FormatSpec.VERSION4, attributeMap)) { + if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(), FormatSpec.VERSION4, + LocaleUtils.constructLocaleFromString(TEST_LOCALE), attributeMap)) { return file; } else { throw new IOException("Empty dictionary " + file.getAbsolutePath() |