Skip to content

Commit

Permalink
Use correct assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Jul 2, 2024
1 parent 4760ce6 commit 81bf466
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ class ZoomableTest {
rule.onNodeWithTag("content").performClick()
rule.mainClock.advanceTimeBy(ViewConfiguration.getLongPressTimeout().toLong())
rule.runOnIdle {
check(zoomableState.real().isReadyToInteract)
check(!zoomableState.real().isReadyToInteract)
assertThat(clickCount).isEqualTo(1)
}

// Regression test for https://github.com/saket/telephoto/issues/93
// Transformation gestures (for zooming and panning) made before the
// content was ready was causing a crash.
check(zoomableState.real().isReadyToInteract)
check(!zoomableState.real().isReadyToInteract)
rule.onNodeWithTag("content").performTouchInput {
pinchToZoomBy(visibleSize.center / 2f)
}
Expand Down

0 comments on commit 81bf466

Please sign in to comment.