diff options
author | 2014-03-25 10:46:31 +0000 | |
---|---|---|
committer | 2014-03-25 10:46:32 +0000 | |
commit | 071b9c1a054bd2bfe3131572de02b30442b01ea3 (patch) | |
tree | b5c35b7afbe8b3d4ad16249ff42821518ed44c67 /tests/src/com/android/inputmethod/latin/InputLogicTests.java | |
parent | eddbb7ac88c3174ffdc38a9dd799029302f55d03 (diff) | |
parent | 1079665c3c017ee024a2ffdaf3488cc8c37f087a (diff) | |
download | latinime-071b9c1a054bd2bfe3131572de02b30442b01ea3.tar.gz latinime-071b9c1a054bd2bfe3131572de02b30442b01ea3.tar.xz latinime-071b9c1a054bd2bfe3131572de02b30442b01ea3.zip |
Merge "[CB14] Implement backspace in the combiner chain"
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputLogicTests.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java index ab6245635..d4e6ad87a 100644 --- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java +++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java @@ -454,4 +454,24 @@ public class InputLogicTests extends InputTestsBase { assertEquals("predictions after recorrection", "Obama", suggestedWords.size() > 0 ? suggestedWords.getWord(0) : null); } + + public void testComposingMultipleBackspace() { + final String WORD_TO_TYPE = "radklro"; + final int TIMES_TO_TYPE = 3; + final int TIMES_TO_BACKSPACE = 8; + type(WORD_TO_TYPE); + type(Constants.CODE_DELETE); + type(Constants.CODE_DELETE); + type(Constants.CODE_DELETE); + type(WORD_TO_TYPE); + type(Constants.CODE_DELETE); + type(Constants.CODE_DELETE); + type(WORD_TO_TYPE); + type(Constants.CODE_DELETE); + type(Constants.CODE_DELETE); + type(Constants.CODE_DELETE); + assertEquals("composing with multiple backspace", + WORD_TO_TYPE.length() * TIMES_TO_TYPE - TIMES_TO_BACKSPACE, + mEditText.getText().length()); + } } |