Skip to content

Commit

Permalink
Fixed tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Jan 10, 2024
1 parent 374bd34 commit db80ee7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ScrollHelperTest {

@Test
fun `should scroll down to edge on full screen view when gesture navigation enabled`() {
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_DOWN)
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_DOWN, null, null)
val upEvent = getUpEvent()
val amountInPx = displayHeight * SCROLL_RANGE_SAFE_PERCENT

Expand All @@ -88,7 +88,7 @@ class ScrollHelperTest {

@Test
fun `should scroll left to edge on full screen view when gesture navigation enabled`() {
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_LEFT)
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_LEFT, null, null)
val upEvent = getUpEvent()
val amountInPx = displayWidth * SCROLL_RANGE_SAFE_PERCENT

Expand All @@ -103,7 +103,7 @@ class ScrollHelperTest {

@Test
fun `should scroll up to edge on full screen view when gesture navigation enabled`() {
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_UP)
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_UP,null, null)
val upEvent = getUpEvent()
val amountInPx = displayHeight * SCROLL_RANGE_SAFE_PERCENT

Expand All @@ -118,7 +118,7 @@ class ScrollHelperTest {

@Test
fun `should scroll right to edge on full screen view when gesture navigation enabled`() {
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_RIGHT)
ScrollHelper.performOnce(uiControllerMock, viewMock, MOTION_DIR_RIGHT, null, null)
val upEvent = getUpEvent()
val amountInPx = displayWidth * SCROLL_RANGE_SAFE_PERCENT

Expand Down

0 comments on commit db80ee7

Please sign in to comment.