aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-30 10:07:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-30 10:07:20 -0700
commit831a24bc1ff73dafffe4754b20d7005f1db7a995 (patch)
treedbe4c46846eec795fd4544cb0122fff2fb2ba7fb /tests/src/com/android/inputmethod/latin/InputLogicTests.java
parented754b99915bfad79db615771dc73a60a089d3e2 (diff)
parentf68fe7a9c9262a3591eeba61f34a91855a34c930 (diff)
downloadlatinime-831a24bc1ff73dafffe4754b20d7005f1db7a995.tar.gz
latinime-831a24bc1ff73dafffe4754b20d7005f1db7a995.tar.xz
latinime-831a24bc1ff73dafffe4754b20d7005f1db7a995.zip
am f68fe7a9: Don\'t forward phantom space state on stripper input
* commit 'f68fe7a9c9262a3591eeba61f34a91855a34c930': Don't forward phantom space state on stripper input
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTests.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
index 7790299b0..38e57aaed 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
@@ -216,6 +216,19 @@ public class InputLogicTests extends InputTestsBase {
assertEquals("manual pick then separator", EXPECTED_RESULT, mTextView.getText().toString());
}
+ public void testManualPickThenStripperThenPick() {
+ final String WORD_TO_TYPE = "this";
+ final String STRIPPER = "\n";
+ final String EXPECTED_RESULT = "this\nthis";
+ type(WORD_TO_TYPE);
+ pickSuggestionManually(0, WORD_TO_TYPE);
+ type(STRIPPER);
+ type(WORD_TO_TYPE);
+ pickSuggestionManually(0, WORD_TO_TYPE);
+ assertEquals("manual pick then \\n then manual pick", EXPECTED_RESULT,
+ mTextView.getText().toString());
+ }
+
public void testManualPickThenSpaceThenType() {
final String WORD1_TO_TYPE = "this";
final String WORD2_TO_TYPE = " is";