Test |
Duration |
Result |
GIVEN a behavior and landscape orientation WHEN TabSheetBehaviorManager is initialized THEN it sets the behavior expandedOffset to 0 |
0.210s |
passed |
GIVEN a behavior and portrait orientation WHEN TabSheetBehaviorManager is initialized THEN it sets the behavior expandedOffset to 40 |
0.219s |
passed |
GIVEN a behavior and undefined orientation WHEN TabSheetBehaviorManager is initialized THEN it sets the behavior expandedOffset to 40 |
0.229s |
passed |
GIVEN behaviour state is 'dragging' & currentBottomSheetTop is more than draggedLowestSheetTop WHEN onSlide is called THEN draggedLowestSheetTop is same value |
0.018s |
passed |
GIVEN behaviour state is 'dragging' & currentBottomSheetTop is same as draggedLowestSheetTop WHEN onSlide is called THEN draggedLowestSheetTop is same value |
0.016s |
passed |
GIVEN behaviour state is 'dragging' & currentBottomSheetTop less than draggedLowestSheetTop WHEN onSlide is called THEN draggedLowestSheetTop is set to currentBottomSheetTop |
0.019s |
passed |
GIVEN behaviour state is 'dragging' & draggedLowestSheetTop is null WHEN onSlide is called THEN draggedLowestSheetTop is set to currentBottomSheetTop |
0.012s |
passed |
GIVEN behaviour state is 'settling' & currentBottomSheetTop is more than draggedLowestSheetTop WHEN onSlide is called THEN fab y is set |
0.012s |
passed |
GIVEN behaviour state is 'settling' & currentBottomSheetTop is same as draggedLowestSheetTop WHEN onSlide is called THEN fab y is set |
0.012s |
passed |
GIVEN behaviour state is 'settling' & currentBottomSheetTop less than draggedLowestSheetTop WHEN onSlide is called THEN fab y is set |
0.257s |
passed |
GIVEN behaviour state is 'settling' & draggedLowestSheetTop is null WHEN onSlide is called THEN draggedLowestSheetTop is set to fab y is set |
0.011s |
passed |
GIVEN behaviour state is 'state collapsed' WHEN onStateChanged is called THEN draggedLowestSheetTop is set to null |
0s |
passed |
GIVEN behaviour state is 'state expanded' WHEN onStateChanged is called THEN draggedLowestSheetTop is set to null |
0.001s |
passed |
GIVEN converted dim value is at max dim WHEN onSlide is called THEN it does not set the dialog dim amount |
0.010s |
passed |
GIVEN converted dim value is less than max dim WHEN onSlide is called THEN it sets the dialog dim amount |
0.007s |
passed |
GIVEN converted dim value is more than max dim WHEN onSlide is called THEN it does not set the dialog dim amount |
0.007s |
passed |
GIVEN fewer tabs opened than the expanding limit and landscape orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0.001s |
passed |
GIVEN fewer tabs opened than the expanding limit and landscape orientation WHEN updateBehaviorState is called THEN the behavior is set as expanded |
0.001s |
passed |
GIVEN fewer tabs opened than the expanding limit and portrait orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as collapsed |
0.001s |
passed |
GIVEN fewer tabs opened than the expanding limit and portrait orientation WHEN updateBehaviorState is called THEN the behavior is set as collapsed |
0s |
passed |
GIVEN fewer tabs opened than the expanding limit and undefined orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as collapsed |
0s |
passed |
GIVEN more tabs opened than the expanding limit and landscape orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0.001s |
passed |
GIVEN more tabs opened than the expanding limit and landscape orientation WHEN updateBehaviorState is called THEN the behavior is set as expanded |
0s |
passed |
GIVEN more tabs opened than the expanding limit and not landscape orientation WHEN updateBehaviorState is called THEN the behavior is set as expanded |
0.001s |
passed |
GIVEN more tabs opened than the expanding limit and portrait orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0s |
passed |
GIVEN more tabs opened than the expanding limit and undefined orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0s |
passed |
GIVEN the number of tabs opened is exactly the expanding limit and landscape orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0s |
passed |
GIVEN the number of tabs opened is exactly the expanding limit and landscape orientation WHEN updateBehaviorState is called THEN the behavior is set as expanded |
0.122s |
passed |
GIVEN the number of tabs opened is exactly the expanding limit and portrait orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0.001s |
passed |
GIVEN the number of tabs opened is exactly the expanding limit and portrait orientation WHEN updateBehaviorState is called THEN the behavior is set as expanded |
0s |
passed |
GIVEN the number of tabs opened is exactly the expanding limit and undefined orientation WHEN TabSheetBehaviorManager is initialized THEN the behavior is set as expanded |
0.001s |
passed |
WHEN TabSheetBehaviorManager is initialized THEN it caches the orientation parameter value |
0s |
passed |
WHEN isLandscape is called with Configuration#ORIENTATION_LANDSCAPE THEN it returns true |
0.002s |
passed |
WHEN isLandscape is called with Configuration#ORIENTATION_PORTRAIT THEN it returns false |
0.115s |
passed |
WHEN isLandscape is called with Configuration#ORIENTATION_UNDEFINED THEN it returns false |
0s |
passed |
WHEN other states are invoked THEN do nothing |
0.001s |
passed |
WHEN state is half-expanded THEN close the tray |
0.002s |
passed |
WHEN state is hidden THEN invoke interactor |
0.002s |
passed |
WHEN updateBehaviorExpandedOffset is called with a landscape parameter THEN it sets expandedOffset to be 0 dp |
0.214s |
passed |
WHEN updateBehaviorExpandedOffset is called with a portrait parameter THEN it sets expandedOffset to be 40 dp |
0.223s |
passed |
WHEN updateBehaviorExpandedOffset is called with a undefined parameter THEN it sets expandedOffset to be 40 dp |
0.212s |
passed |
WHEN updateDependingOnOrientation is called with a new orientation THEN this is cached and updateBehaviorState is called |
0.041s |
passed |
WHEN updateDependingOnOrientation is called with the same orientation as the current one THEN nothing happens |
0.023s |
passed |