diff options
author | 2013-07-01 00:22:38 -0700 | |
---|---|---|
committer | 2013-07-01 00:22:38 -0700 | |
commit | 0fed749de6f898a32f6c67ce5b448a0d05f71197 (patch) | |
tree | 4fcea964d2a7cd8618a373cd3410f64b50585f53 /tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java | |
parent | d749af1664d19b72d36201fe2e7bc9b87d00aefd (diff) | |
parent | e5a3b77664db1ecfd95601a806649f063eb604d3 (diff) | |
download | latinime-0fed749de6f898a32f6c67ce5b448a0d05f71197.tar.gz latinime-0fed749de6f898a32f6c67ce5b448a0d05f71197.tar.xz latinime-0fed749de6f898a32f6c67ce5b448a0d05f71197.zip |
am e5a3b776: Merge "Move Range out of RichInputConnection and rename it."
* commit 'e5a3b77664db1ecfd95601a806649f063eb604d3':
Move Range out of RichInputConnection and rename it.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java b/tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java index 0e077bbbe..c0dd9933c 100644 --- a/tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java +++ b/tests/src/com/android/inputmethod/latin/RichInputConnectionAndTextRangeTests.java @@ -16,6 +16,8 @@ package com.android.inputmethod.latin; +import com.android.inputmethod.latin.utils.TextRange; + import android.inputmethodservice.InputMethodService; import android.os.Parcel; import android.test.AndroidTestCase; @@ -30,8 +32,6 @@ import android.view.inputmethod.ExtractedTextRequest; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputConnectionWrapper; -import com.android.inputmethod.latin.RichInputConnection.Range; - import java.util.Locale; @SmallTest @@ -169,7 +169,7 @@ public class RichInputConnectionAndTextRangeTests extends AndroidTestCase { mockInputMethodService.setInputConnection(new MockConnection("word wo", "rd", et)); et.startOffset = 0; et.selectionStart = 7; - Range r; + TextRange r; ic.beginBatchEdit(); // basic case @@ -241,7 +241,7 @@ public class RichInputConnectionAndTextRangeTests extends AndroidTestCase { text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 10 /* start */, 16 /* end */, 0 /* flags */); mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); - Range r; + TextRange r; SuggestionSpan[] suggestions; r = ic.getWordRangeAtCursor(" ", 0); |