Class org.mozilla.fenix.perf.StartupPathProviderTest
Tests
Test |
Duration |
Result |
GIVEN a main intent is received and the app is started WHEN getting the start up path THEN it is main |
0.004s |
passed |
GIVEN a main intent is received but the activity is not started yet WHEN getting the start up path THEN main is returned |
3.789s |
passed |
GIVEN no intent is received and the activity is not started WHEN getting the start up path THEN it is not set |
0.001s |
passed |
GIVEN the app is launched by a null intent (is this possible) WHEN getting the start up path THEN it is not set |
0.001s |
passed |
GIVEN the app is launched by a send action WHEN getting the start up path THEN it is unknown |
0.005s |
passed |
GIVEN the app is launched by app link WHEN getting the start up path THEN it is view |
0.005s |
passed |
GIVEN the app is launched from the homescreen WHEN getting the start up path THEN it is main |
0.004s |
passed |
GIVEN the app is launched to the homescreen with MAIN and stopped WHEN getting the start up path THEN it set to MAIN |
0.273s |
passed |
GIVEN the app is launched to the homescreen with MAIN, stopped, and relaunched warm from the app switcher WHEN getting the start up path THEN it set to MAIN' |
0.005s |
passed |
GIVEN the app is launched to the homescreen, paused, and resumed WHEN getting the start up path THEN it returns the initial intent value |
0.005s |
passed |
GIVEN the app is launched to the homescreen, stopped, and relaunched warm from app link WHEN getting the start up path THEN it is view |
0.007s |
passed |
GIVEN the app is launched with MAIN, stopped, started from the app switcher and receives an intent in the foreground WHEN getting the start up path THEN it returns MAIN |
0.006s |
passed |
GIVEN the app is launched with an intent and receives an intent while the activity is foregrounded WHEN getting the start up path THEN it returns the initial intent value |
0.007s |
passed |
WHEN attach is called THEN the provider is registered to the lifecycle |
0.213s |
passed |
WHEN calling attach THEN the intent is passed to on intent received |
0.081s |
passed |