For #28155 - Show search terms in address bar for both edit and display modes

This commit is contained in:
Alexandru2909 2022-12-16 14:24:50 +02:00 committed by mergify[bot]
parent 96ed5ecc0d
commit 52b4a1ebfa
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ abstract class ToolbarIntegration(
toolbar,
store,
sessionId,
context.settings().showUnifiedSearchFeature,
ToolbarFeature.UrlRenderConfiguration(
context.components.publicSuffixList,
ThemeManager.resolveAttribute(R.attr.textPrimary, context),

View File

@ -20,6 +20,7 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
import org.mozilla.fenix.utils.Settings
import mozilla.components.browser.toolbar.behavior.ToolbarPosition as MozacToolbarPosition
@ -41,6 +42,7 @@ class BrowserToolbarViewTest {
every { testContext.components.useCases } returns mockk(relaxed = true)
every { testContext.components.core } returns mockk(relaxed = true)
every { testContext.components.publicSuffixList } returns PublicSuffixList(testContext)
every { testContext.settings().showUnifiedSearchFeature } returns false
toolbarView = BrowserToolbarView(
context = testContext,