diff options
author | 2013-12-11 10:42:15 +0000 | |
---|---|---|
committer | 2013-12-11 10:42:16 +0000 | |
commit | 549ae3d84effba95d2f37737bfa3ccb1d87094c7 (patch) | |
tree | 57c767bc15ac82038c7e6384e2980fe804e3030e /tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java | |
parent | 0719c4ca7283946c99b9291a7ba31c41fd3ff391 (diff) | |
parent | 84cc5a2c765831bb965c83bc996e6b906059e159 (diff) | |
download | latinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.tar.gz latinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.tar.xz latinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.zip |
Merge "Create ver4 dictionary files with the dictionary name."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java index c14840258..d9d4a5584 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java @@ -70,12 +70,13 @@ public class BinaryDictionaryTests extends AndroidTestCase { Map<String, String> attributeMap = new HashMap<String, String>(); attributeMap.put(FormatSpec.FileHeader.SUPPORTS_DYNAMIC_UPDATE_ATTRIBUTE, FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); + final String headerFileName = file.getName() + FormatSpec.HEADER_FILE_EXTENSION; if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(), FormatSpec.VERSION4, attributeMap)) { - return new File(file, FormatSpec.HEADER_FILE_EXTENSION); + return new File(file, headerFileName); } else { throw new IOException("Empty dictionary " + file.getAbsolutePath() + " " - + FormatSpec.HEADER_FILE_EXTENSION + " cannot be created."); + + headerFileName + " cannot be created."); } } |