diff options
author | 2013-09-17 13:41:50 +0000 | |
---|---|---|
committer | 2013-09-17 13:41:51 +0000 | |
commit | 9b78241dff6b785408ae19512f6875e63771b349 (patch) | |
tree | 2061a04f0263c9dcd18c4c221b3ca518463c9b45 /tests/src/com/android/inputmethod/latin/InputLogicTests.java | |
parent | 4e17b42d0fd104ec2cd3a79db2473863228ecb62 (diff) | |
parent | e8f717943f7063444cd1c777e8dd03dc738f3c4a (diff) | |
download | latinime-9b78241dff6b785408ae19512f6875e63771b349.tar.gz latinime-9b78241dff6b785408ae19512f6875e63771b349.tar.xz latinime-9b78241dff6b785408ae19512f6875e63771b349.zip |
Merge "Improve trailing quotes processing"
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputLogicTests.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java index fe92be618..cc2569f5e 100644 --- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java +++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java @@ -134,6 +134,13 @@ public class InputLogicTests extends InputTestsBase { assertEquals("simple auto-correct", EXPECTED_RESULT, mEditText.getText().toString()); } + public void testAutoCorrectWithQuote() { + final String STRING_TO_TYPE = "didn' "; + final String EXPECTED_RESULT = "didn't "; + type(STRING_TO_TYPE); + assertEquals("auto-correct with quote", EXPECTED_RESULT, mEditText.getText().toString()); + } + public void testAutoCorrectWithPeriod() { final String STRING_TO_TYPE = "tgis."; final String EXPECTED_RESULT = "this."; |