Class mozilla.components.browser.menu.view.StickyFooterLinearLayoutManagerTest
Tests
Test |
Duration |
Result |
GIVEN sticky item being scrolled downwards offscreen WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it returns true |
0.003s |
passed |
GIVEN sticky item being scrolled upwards from the bottom WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it returns false |
0.002s |
passed |
GIVEN sticky item being the last shown item WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it returns true |
0.002s |
passed |
GIVEN a default layout menu WHEN getY is called THEN it returns the translation needed to push the sticky item to the top |
0.002s |
passed |
GIVEN a reverseLayout menu WHEN getY is called THEN it returns 0 as the translation to be set for the sticky item |
0.385s |
passed |
GIVEN scrollToIndicatedPositionWithOffset WHEN called with a position bigger than stickyItemPosition THEN will scroll to that position |
0.001s |
passed |
GIVEN scrollToIndicatedPositionWithOffset WHEN called with a position equal to stickyItemPosition THEN will scroll to that position |
0.001s |
passed |
GIVEN scrollToIndicatedPositionWithOffset WHEN called with a position smaller than stickyItemPosition THEN will scroll to after that |
0s |
passed |
GIVEN scrollToIndicatedPositionWithOffset WHEN called with a position smaller than stickyItemPosition which is displayed THEN will scroll to that |
0.010s |
passed |
GIVEN sticky item not shown WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it checks the bottom most item |
0.001s |
passed |
GIVEN sticky item shown WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it checks the item above the sticky one |
0.010s |
passed |
GIVEN stickyItemPosition not set WHEN shouldStickyItemBeShownForCurrentPosition is called THEN it returns false |
0s |
passed |