diff options
author | 2013-12-11 19:30:18 +0900 | |
---|---|---|
committer | 2013-12-11 19:30:18 +0900 | |
commit | 84cc5a2c765831bb965c83bc996e6b906059e159 (patch) | |
tree | 2bc9567af5899e8f0295231bccbb4c7fae12017f /tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | |
parent | 54653533d2072b7d0983a6fb1635b06c140d98b1 (diff) | |
download | latinime-84cc5a2c765831bb965c83bc996e6b906059e159.tar.gz latinime-84cc5a2c765831bb965c83bc996e6b906059e159.tar.xz latinime-84cc5a2c765831bb965c83bc996e6b906059e159.zip |
Create ver4 dictionary files with the dictionary name.
Bug: 12025402
Change-Id: Ia0bb13b2e26aa60a67dff73f3f6a1e276f1bb1dd
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java index d76a55283..931ba7d3c 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java @@ -122,12 +122,13 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase { FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); attributeMap.put(FormatSpec.FileHeader.HAS_HISTORICAL_INFO_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."); } } |