diff options
author | 2012-11-20 19:40:09 -0800 | |
---|---|---|
committer | 2012-11-20 19:40:09 -0800 | |
commit | b9385ff9be484487a523c1eb6db4eba33ef2359d (patch) | |
tree | 6ba4479a2087a30f43459544abb6b006f76d0688 /tests/src | |
parent | 3acd0c7a9f4a5f17897a4fe51b023d6f14ba7ef0 (diff) | |
parent | cdbf6fb541aac9d57f4d27630ad0ef73814be54f (diff) | |
download | latinime-b9385ff9be484487a523c1eb6db4eba33ef2359d.tar.gz latinime-b9385ff9be484487a523c1eb6db4eba33ef2359d.tar.xz latinime-b9385ff9be484487a523c1eb6db4eba33ef2359d.zip |
am cdbf6fb5: Merge "Correctly add double quote to the space strippers" into jb-mr1.1-dev
* commit 'cdbf6fb541aac9d57f4d27630ad0ef73814be54f':
Correctly add double quote to the space strippers
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java index a9947c1bd..03310c88b 100644 --- a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java +++ b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java @@ -104,4 +104,20 @@ public class BlueUnderlineTests extends InputTestsBase { final SpanGetter span = new SpanGetter(mTextView.getText(), SuggestionSpan.class); assertNull("blue underline removed when cursor is moved", span.mSpan); } + + public void testComposingStopsOnSpace() { + final String STRING_TO_TYPE = "this "; + type(STRING_TO_TYPE); + sleep(DELAY_TO_WAIT_FOR_UNDERLINE); + // Simulate the onUpdateSelection() event + mLatinIME.onUpdateSelection(0, 0, STRING_TO_TYPE.length(), STRING_TO_TYPE.length(), -1, -1); + runMessages(); + // Here the blue underline has been set. testBlueUnderline() is testing for this already, + // so let's not test it here again. + // Now simulate the user moving the cursor. + SpanGetter span = new SpanGetter(mTextView.getText(), UnderlineSpan.class); + assertNull("should not be composing, so should not have an underline span", span.mSpan); + span = new SpanGetter(mTextView.getText(), SuggestionSpan.class); + assertNull("should not be composing, so should not have an underline span", span.mSpan); + } } |