aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-09-17 19:43:22 +0900
committerJean Chalard <jchalard@google.com>2013-09-17 22:17:22 +0900
commite8f717943f7063444cd1c777e8dd03dc738f3c4a (patch)
tree9019b085955b2d391cbfe76003119f86555ecdc9 /tests/src/com/android/inputmethod/latin/InputLogicTests.java
parent060917ed9abff0e777e6b99e43cc4b826d1ac0c8 (diff)
downloadlatinime-e8f717943f7063444cd1c777e8dd03dc738f3c4a.tar.gz
latinime-e8f717943f7063444cd1c777e8dd03dc738f3c4a.tar.xz
latinime-e8f717943f7063444cd1c777e8dd03dc738f3c4a.zip
Improve trailing quotes processing
Bug: 10445496 Change-Id: Ib7bd05aea59ae6c9b8ce31299ef2235521b0e350
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTests.java7
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.";