From 6aaa105a851c1dc558a09a19fa716e9ad54270e4 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 28 Mar 2012 20:21:26 +0900 Subject: [PATCH] Fix coordinates of InputTestsBase.type Bug: 6225317 Change-Id: I5c9adb3e65e5742680309b4f2d1a9f2b83ce546f --- .../com/android/inputmethod/latin/InputTestsBase.java | 9 +++------ .../com/android/inputmethod/latin/PunctuationTests.java | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 2c63993d7..7d97eed9e 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -26,8 +26,8 @@ import android.text.InputType; import android.text.SpannableStringBuilder; import android.text.style.SuggestionSpan; import android.view.LayoutInflater; -import android.view.ViewGroup; import android.view.View; +import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.widget.FrameLayout; @@ -37,9 +37,6 @@ import com.android.inputmethod.keyboard.Key; import com.android.inputmethod.keyboard.Keyboard; import com.android.inputmethod.keyboard.KeyboardActionListener; -import java.util.Arrays; -import java.util.HashMap; - public class InputTestsBase extends ServiceTestCase { private static final String PREF_DEBUG_MODE = "debug_mode"; @@ -192,8 +189,8 @@ public class InputTestsBase extends ServiceTestCase { } } mLatinIME.onCodeInput(codePoint, - KeyboardActionListener.SPELL_CHECKER_COORDINATE, - KeyboardActionListener.SPELL_CHECKER_COORDINATE); + KeyboardActionListener.NOT_A_TOUCH_COORDINATE, + KeyboardActionListener.NOT_A_TOUCH_COORDINATE); //mLatinIME.onReleaseKey(codePoint, false); } diff --git a/tests/src/com/android/inputmethod/latin/PunctuationTests.java b/tests/src/com/android/inputmethod/latin/PunctuationTests.java index cc549bceb..1b5b72ff8 100644 --- a/tests/src/com/android/inputmethod/latin/PunctuationTests.java +++ b/tests/src/com/android/inputmethod/latin/PunctuationTests.java @@ -16,8 +16,6 @@ package com.android.inputmethod.latin; -import com.android.inputmethod.keyboard.Keyboard; - public class PunctuationTests extends InputTestsBase { public void testWordThenSpaceThenPunctuationFromStripTwice() {