diff options
author | 2014-02-13 02:29:12 -0800 | |
---|---|---|
committer | 2014-02-13 02:29:12 -0800 | |
commit | 2ae245ffd3c018c1a40c4c19c0c1de6fb703bae4 (patch) | |
tree | 4f8c1a5e50bb773d8c450bdc2fdd05f99637497b /tests/src | |
parent | ef30447d2a9407693dfcdb55bf360db35a81b725 (diff) | |
parent | 5dc0d405b4912ba60dd2461549c24c0254faa27a (diff) | |
download | latinime-2ae245ffd3c018c1a40c4c19c0c1de6fb703bae4.tar.gz latinime-2ae245ffd3c018c1a40c4c19c0c1de6fb703bae4.tar.xz latinime-2ae245ffd3c018c1a40c4c19c0c1de6fb703bae4.zip |
am 5dc0d405: Merge "Clean-up follow-up to I3ecc8496"
* commit '5dc0d405b4912ba60dd2461549c24c0254faa27a':
Clean-up follow-up to I3ecc8496
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java index 82bf0d480..6e894decf 100644 --- a/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java +++ b/tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java @@ -50,8 +50,7 @@ public class BlueUnderlineTests extends InputTestsBase { final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); assertEquals("extend blue underline, span start", EXPECTED_SPAN_START, spanBefore.mStart); assertEquals("extend blue underline, span end", EXPECTED_SPAN_END, spanBefore.mEnd); - assertEquals("extend blue underline, span color", true, - spanBefore.isAutoCorrectionIndicator()); + assertTrue("extend blue underline, span color", spanBefore.isAutoCorrectionIndicator()); sleep(DELAY_TO_WAIT_FOR_UNDERLINE); runMessages(); // Now we have been able to re-evaluate the word, there shouldn't be an auto-correction span @@ -80,8 +79,8 @@ public class BlueUnderlineTests extends InputTestsBase { sleep(DELAY_TO_WAIT_FOR_UNDERLINE); runMessages(); final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); - assertFalse("show no blue underline after backspace, span start should be -1", - suggestionSpan.isAutoCorrectionIndicator()); + assertFalse("show no blue underline after backspace, span should not be the auto-" + + "correction indicator", suggestionSpan.isAutoCorrectionIndicator()); final SpanGetter underlineSpan = new SpanGetter(mEditText.getText(), UnderlineSpan.class); assertEquals("should be composing, so should have an underline span", EXPECTED_UNDERLINE_SPAN_START, underlineSpan.mStart); @@ -107,7 +106,8 @@ public class BlueUnderlineTests extends InputTestsBase { sleep(DELAY_TO_WAIT_FOR_UNDERLINE); runMessages(); final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); - assertNull("blue underline removed when cursor is moved", span.mSpan); + assertFalse("blue underline removed when cursor is moved", + span.isAutoCorrectionIndicator()); } public void testComposingStopsOnSpace() { |