aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputLogicTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-05-22 02:37:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-22 02:37:55 -0700
commite0f8476f71be89e78530f739bee91dd78cdbbc44 (patch)
tree823d979558207796ed6eb4f50c59072e7e11e8ff /tests/src/com/android/inputmethod/latin/InputLogicTests.java
parentd818bdc6bc5eefc04cb00e9c30ed3b35e7479043 (diff)
parentab619812a52e3d957156e37610392e2b03659891 (diff)
downloadlatinime-e0f8476f71be89e78530f739bee91dd78cdbbc44.tar.gz
latinime-e0f8476f71be89e78530f739bee91dd78cdbbc44.tar.xz
latinime-e0f8476f71be89e78530f739bee91dd78cdbbc44.zip
am ab619812: Merge "Fix some of the input logic tests" into jb-dev
* commit 'ab619812a52e3d957156e37610392e2b03659891': Fix some of the input logic tests
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputLogicTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputLogicTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputLogicTests.java b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
index 6c3cb16c7..f1ccfdd1d 100644
--- a/tests/src/com/android/inputmethod/latin/InputLogicTests.java
+++ b/tests/src/com/android/inputmethod/latin/InputLogicTests.java
@@ -28,7 +28,7 @@ public class InputLogicTests extends InputTestsBase {
public void testPickSuggestionThenBackspace() {
final String WORD_TO_TYPE = "this";
- final String EXPECTED_RESULT = "this";
+ final String EXPECTED_RESULT = "thi";
type(WORD_TO_TYPE);
pickSuggestionManually(0, WORD_TO_TYPE);
mLatinIME.onUpdateSelection(0, 0, WORD_TO_TYPE.length(), WORD_TO_TYPE.length(), -1, -1);
@@ -40,7 +40,7 @@ public class InputLogicTests extends InputTestsBase {
public void testPickAutoCorrectionThenBackspace() {
final String WORD_TO_TYPE = "tgis";
final String WORD_TO_PICK = "this";
- final String EXPECTED_RESULT = "tgis";
+ final String EXPECTED_RESULT = "thi";
type(WORD_TO_TYPE);
// Choose the auto-correction, which is always in position 0. For "tgis", the
// auto-correction should be "this".
@@ -55,7 +55,7 @@ public class InputLogicTests extends InputTestsBase {
public void testPickTypedWordOverAutoCorrectionThenBackspace() {
final String WORD_TO_TYPE = "tgis";
- final String EXPECTED_RESULT = "tgis";
+ final String EXPECTED_RESULT = "tgi";
type(WORD_TO_TYPE);
// Choose the typed word, which should be in position 1 (because position 0 should
// be occupied by the "this" auto-correction, as checked by testAutoCorrect())
@@ -71,7 +71,7 @@ public class InputLogicTests extends InputTestsBase {
public void testPickDifferentSuggestionThenBackspace() {
final String WORD_TO_TYPE = "tgis";
final String WORD_TO_PICK = "thus";
- final String EXPECTED_RESULT = "tgis";
+ final String EXPECTED_RESULT = "thu";
type(WORD_TO_TYPE);
// Choose the second suggestion, which should be in position 2 and should be "thus"
// when "tgis is typed.