Class mozilla.components.browser.state.engine.middleware.SessionPrioritizationMiddlewareTest

8

tests

0

failures

0

ignored

0.056s

duration

100%

successful

Tests

Test Duration Result
GIVEN a linked session WHEN CheckForFormDataAction THEN update the selected linked tab priority to DEFAULT if there is no form data and HIGH when there is form data 0.010s passed
GIVEN a linked session WHEN CheckForFormDataAction with adjustPriority = false THEN do nothing 0.011s passed
GIVEN a linked session WHEN UnlinkEngineSessionAction THEN reset previousHighestPriorityTabId 0.015s passed
GIVEN a linked session WHEN UnlinkEngineSessionAction THEN set the DEFAULT priority to the unlinked tab 0.002s passed
GIVEN a previous selected tab WHEN LinkEngineSessionAction THEN update the selected linked tab priority to HIGH 0.005s passed
GIVEN a previous selected tab with priority DEFAULT WHEN selecting and linking a new tab THEN update the new one to HIGH and the previous tab based on if it contains form data 0.006s passed
GIVEN no linked tab WHEN SelectTabAction THEN no changes in priority show happened 0.001s passed
GIVEN selected tab WHEN PauseAction THEN checkForFormData should be called with adjustPriority = false 0.006s passed

Standard output

I [SessionPrioritizationMiddleware] Update the currentSelectedTab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Update the tab 1 priority to DEFAULT
I [SessionPrioritizationMiddleware] Update the tab 1 priority to DEFAULT
I [SessionPrioritizationMiddleware] Update the currentSelectedTab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Update the tab 1 priority to DEFAULT
I [SessionPrioritizationMiddleware] Update the tab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Tab 1 will return to DEFAULT priority after 0 ms
I [SessionPrioritizationMiddleware] Update the tab 1 priority back to DEFAULT
I [SessionPrioritizationMiddleware] Update the currentSelectedTab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Update the currentSelectedTab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Update the currentSelectedTab 2 priority to HIGH
I [SessionPrioritizationMiddleware] Update the currentSelectedTab 1 priority to HIGH
I [SessionPrioritizationMiddleware] Update the tab 1 priority to DEFAULT