зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1651019 - Check current inputted value to avoid timing issue. r=geckoview-reviewers,esawin
To sync Gecko's text with Java text correctly, I would like to add more text and selection check each `InputConnection.setComposingText` call. Differential Revision: https://phabricator.services.mozilla.com/D83464
This commit is contained in:
Родитель
4254bae54a
Коммит
1b95a01795
|
@ -866,10 +866,15 @@ class TextInputDelegateTest : BaseSessionTest() {
|
|||
""")
|
||||
|
||||
setComposingText(ic, "b", 1)
|
||||
setComposingText(ic, "a", 1)
|
||||
pressKey(ic, KeyEvent.KEYCODE_R)
|
||||
assertTextAndSelectionAt("Don't change caret position after calling blur and focus",
|
||||
ic, "b", 1)
|
||||
|
||||
assertText("Can set composition string after calling blur and focus",
|
||||
setComposingText(ic, "a", 1)
|
||||
assertTextAndSelectionAt("Can set composition string after calling blur and focus",
|
||||
ic, "ba", 2)
|
||||
|
||||
pressKey(ic, KeyEvent.KEYCODE_R)
|
||||
assertText("Can set input string by keypress after calling blur and focus",
|
||||
ic, "bar")
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче