This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -742,11 +742,9 @@ class PanZoomControllerTest : BaseSessionTest() {
742
742
}
743
743
})
744
744
745
- val fuzzyEqual = { a: Float , b: Float -> Math .abs(a - b) <= 1.0 }
746
-
747
745
// Scroll down to the bottom using touch gestures, and check
748
746
// 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) {
750
748
pan(25f , 15f )
751
749
mainSession.flushApzRepaints()
752
750
}
@@ -767,7 +765,7 @@ class PanZoomControllerTest : BaseSessionTest() {
767
765
768
766
// Scroll back up to the top using script, and check that
769
767
// 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 ) {
771
769
mainSession.evaluateJS(" window.scrollBy(0, -10)" )
772
770
mainSession.flushApzRepaints()
773
771
}
You can’t perform that action at this time.
0 commit comments