Skip to content

Commit

Permalink
For mozilla-mobile#10555 - BrowserToolbarBehaviorTest cleanup
Browse files Browse the repository at this point in the history
This commented method seems to be a leftover from the previous refactoring.
"behavior.forceExpand(..)" now calls "expandWithAnimation" for which we already
have a test at line 450.
  • Loading branch information
Mugurell committed Jul 14, 2021
1 parent fc5a79e commit 160ec02
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,17 +493,6 @@ class BrowserToolbarBehaviorTest {
assertEquals(Gravity.TOP or Gravity.CENTER_HORIZONTAL, layoutParams.gravity)
}

@Test
fun `Behavior will animateSnap UP when forceExpand is called`() {
// val behavior = spy(BrowserToolbarBehavior(testContext, null, ToolbarPosition.BOTTOM))
// doReturn(true).`when`(behavior).shouldScroll
// val toolbar: BrowserToolbar = mock()
//
// behavior.forceExpand(toolbar)
//
// verify(behavior).animateSnap(toolbar, SnapDirection.UP)
}

@Test
fun `Behavior will forceExpand when scrolling up and !shouldScroll if the touch was handled in the browser`() {
val behavior = spy(BrowserToolbarBehavior(testContext, null, ToolbarPosition.BOTTOM))
Expand Down

0 comments on commit 160ec02

Please sign in to comment.