diff options
author | 2013-09-17 06:45:48 -0700 | |
---|---|---|
committer | 2013-09-17 06:45:48 -0700 | |
commit | ef518bfd1cfba18e76998b1ad51fb54eaeaec6b1 (patch) | |
tree | af830f63dbb5cb5c672189c90fd53e08bfd0a701 /tests/src/com/android/inputmethod/latin/InputLogicTests.java | |
parent | 97f53a9fe75d4a378882056f199e7eb24d5ca741 (diff) | |
parent | 9b78241dff6b785408ae19512f6875e63771b349 (diff) | |
download | latinime-ef518bfd1cfba18e76998b1ad51fb54eaeaec6b1.tar.gz latinime-ef518bfd1cfba18e76998b1ad51fb54eaeaec6b1.tar.xz latinime-ef518bfd1cfba18e76998b1ad51fb54eaeaec6b1.zip |
am 9b78241d: Merge "Improve trailing quotes processing"
* commit '9b78241dff6b785408ae19512f6875e63771b349':
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."; |