Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
5dc0d405
Commit
5dc0d405
authored
11 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Clean-up follow-up to I3ecc8496"
parents
5e099580
2d68f4b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java
+5
-5
5 additions, 5 deletions
...src/com/android/inputmethod/latin/BlueUnderlineTests.java
with
5 additions
and
5 deletions
tests/src/com/android/inputmethod/latin/BlueUnderlineTests.java
+
5
−
5
View file @
5dc0d405
...
...
@@ -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 s
tart should be -1"
,
suggestionSpan
.
isAutoCorrectionIndicator
());
assertFalse
(
"show no blue underline after backspace, span s
hould 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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment