Bug 1696785 - Use (400x400) display size in SelectionActionDelegateTest to avoid unexpected multiple updateposition events during the test. r=geckoview-reviewers,agi

SelectionActionDelegateTest does just respond a single event in each test cases,
so if there are multiple events we need to respond, the test stops working since
the response will be discarded in SelectionActionDelegateChild.jsm [1].

We use a lager display size here to avoid the situation, in bug 1735655 the situation
will be eliminated.

[1] https://searchfox.org/mozilla-central/rev/0998b61022a1ece43afe3c750077e5804c6c6392/mobile/android/actors/SelectionActionDelegateChild.jsm#260-264

Differential Revision: https://phabricator.services.mozilla.com/D128418
This commit is contained in:
Hiroyuki Ikezoe 2021-10-14 02:54:58 +00:00
Родитель 6f818f692b
Коммит c61c568d4a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -30,7 +30,7 @@ import org.mozilla.geckoview.GeckoSession
@MediumTest
@RunWith(Parameterized::class)
@WithDisplay(width = 100, height = 100)
@WithDisplay(width = 400, height = 400)
class SelectionActionDelegateTest : BaseSessionTest() {
enum class ContentType {
DIV, EDITABLE_ELEMENT, IFRAME