Bug 1724811 - Disable selection check of Java side on inputConnection_sendKeyEvent. r=geckoview-reviewers,agi

Actually `inputConnection_sendKeyEvent` test is rarely failed such as bug
1676245. Because we have no way to wait for correct selection data.
`TextInputDelegate.updateSelection` isn't called when view isn't attached to
window like geckoview-junit case.

So I would like to comment out this check now.

Depends on D124435

Differential Revision: https://phabricator.services.mozilla.com/D124436
This commit is contained in:
Makoto Kato 2021-09-06 12:38:26 +00:00
Родитель d60b6a18cc
Коммит 07a531585b
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -578,8 +578,11 @@ class TextInputDelegateTest : BaseSessionTest() {
pressKey(ic, KeyEvent.KEYCODE_DPAD_LEFT)
ic.sendKeyEvent(KeyEvent.changeAction(shiftKey, KeyEvent.ACTION_UP))
promise.value
assertTextAndSelection("Can select using key event", ic,
"frabar", 6, 5)
// TODO(m_kato)
// Since geckoview-junit doesn't attach View, there is no way to wait for correct selection data
// assertTextAndSelection("Can select using key event", ic,
// "frabar", 6, 5)
promise = mainSession.evaluatePromiseJS(
when (id) {