Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit aaa57dd

Browse files
committed
Bug 1681261 - Test failure reduction for inputConnection_sendKeyEvent. r=geckoview-reviewers,calu
To reduce test failure of inputConnection_sendKeyEvent, I would like to add more workaround. As long as I run this fix in local 200 times, it is no failure. Differential Revision: https://phabricator.services.mozilla.com/D132931
1 parent e649b5b commit aaa57dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/TextInputDelegateTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,11 @@ class TextInputDelegateTest : BaseSessionTest() {
626626
promise.value
627627

628628
// TODO(m_kato)
629-
// Since geckoview-junit doesn't attach View, there is no way to wait for correct selection data
630-
// assertTextAndSelection("Can select using key event", ic,
631-
// "frabar", 6, 5)
629+
// Since geckoview-junit doesn't attach View, there is no way to wait for correct selection data.
630+
// So Sync shadow text to avoid failures.
631+
syncShadowText(ic)
632+
assertTextAndSelection("Can select using key event", ic,
633+
"frabar", 6, 5)
632634

633635
promise = mainSession.evaluatePromiseJS(
634636
when (id) {

0 commit comments

Comments
 (0)