Class mozilla.components.browser.state.engine.middleware.SessionPrioritizationMiddlewareTest
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.010s |
passed |
GIVEN a linked session WHEN UnlinkEngineSessionAction THEN reset previousHighestPriorityTabId |
0.017s |
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.004s |
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.007s |
passed |
GIVEN no linked tab WHEN SelectTabAction THEN no changes in priority show happened |
0s |
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