|
|
@ -128,8 +128,7 @@ class DefaultBrowserToolbarControllerTest {
|
|
|
|
navController.nav(
|
|
|
|
navController.nav(
|
|
|
|
R.id.browserFragment,
|
|
|
|
R.id.browserFragment,
|
|
|
|
BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
sessionId = "1",
|
|
|
|
sessionId = "1"
|
|
|
|
pastedText = null
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -276,7 +275,7 @@ class DefaultBrowserToolbarControllerTest {
|
|
|
|
verify { metrics.track(Event.BrowserMenuItemTapped(Event.BrowserMenuItemTapped.Item.NEW_PRIVATE_TAB)) }
|
|
|
|
verify { metrics.track(Event.BrowserMenuItemTapped(Event.BrowserMenuItemTapped.Item.NEW_PRIVATE_TAB)) }
|
|
|
|
verify {
|
|
|
|
verify {
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null, pastedText = null)
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
verify { browsingModeManager.mode = BrowsingMode.Private }
|
|
|
|
verify { browsingModeManager.mode = BrowsingMode.Private }
|
|
|
@ -343,7 +342,7 @@ class DefaultBrowserToolbarControllerTest {
|
|
|
|
verify { metrics.track(Event.BrowserMenuItemTapped(Event.BrowserMenuItemTapped.Item.NEW_TAB)) }
|
|
|
|
verify { metrics.track(Event.BrowserMenuItemTapped(Event.BrowserMenuItemTapped.Item.NEW_TAB)) }
|
|
|
|
verify {
|
|
|
|
verify {
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null, pastedText = null)
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
verify { browsingModeManager.mode = BrowsingMode.Normal }
|
|
|
|
verify { browsingModeManager.mode = BrowsingMode.Normal }
|
|
|
@ -370,7 +369,7 @@ class DefaultBrowserToolbarControllerTest {
|
|
|
|
verify { viewModel.previousFragmentId = R.id.browserFragment }
|
|
|
|
verify { viewModel.previousFragmentId = R.id.browserFragment }
|
|
|
|
verify {
|
|
|
|
verify {
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
val directions = BrowserFragmentDirections
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null, pastedText = null)
|
|
|
|
.actionBrowserFragmentToSearchFragment(sessionId = null)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
navController.nav(R.id.browserFragment, directions)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|