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

Commit 82c9bd4

Browse files
author
Sandor Molnar
committed
Backed out changeset a04f6264fc44 (bug 1944989) for causing android build bustages CLOSED TREE
1 parent 1289bc9 commit 82c9bd4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -742,11 +742,9 @@ class PanZoomControllerTest : BaseSessionTest() {
742742
}
743743
})
744744

745-
val fuzzyEqual = { a: Float, b: Float -> Math.abs(a - b) <= 1.0 }
746-
747745
// Scroll down to the bottom using touch gestures, and check
748746
// that the expected scroll updates are reported
749-
while (updates.size == 0 || !fuzzyEqual(updates[updates.size - 1].scrollY, scrollMaxY)) {
747+
while (updates.size == 0 || updates[updates.size - 1].scrollY < scrollMaxY) {
750748
pan(25f, 15f)
751749
mainSession.flushApzRepaints()
752750
}
@@ -767,7 +765,7 @@ class PanZoomControllerTest : BaseSessionTest() {
767765

768766
// Scroll back up to the top using script, and check that
769767
// the expected scroll updates are reported
770-
while (updates.size == 0 || !fuzzyEqual(updates[updates.size - 1].scrollY, 0)) {
768+
while (updates.size == 0 || updates[updates.size - 1].scrollY > 0) {
771769
mainSession.evaluateJS("window.scrollBy(0, -10)")
772770
mainSession.flushApzRepaints()
773771
}

0 commit comments

Comments
 (0)