Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f61ca71b authored by Ahmed Mehfooz's avatar Ahmed Mehfooz
Browse files

[SB] Fix StatusBarContentInsetsViewModelTest

The contentArea_onMaxBoundsChanged_emitsNewValue test can fail
if the configuration is already RTL=true.
This fix ensures we explictly set RTL=false in the test setup.

Test: StatusBarContentInsetsViewModelTest
Bug: 437437516
Flag: com.android.systemui.status_bar_root_modernization
Change-Id: Ifc2c1fcd05f0a9a9070f0f495c4731750f19cf64
parent 5c95e357
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -31,6 +31,7 @@ import com.android.systemui.statusbar.policy.configurationController
import com.android.systemui.statusbar.policy.fake
import com.android.systemui.statusbar.policy.fake
import com.android.systemui.testKosmos
import com.android.systemui.testKosmos
import com.google.common.truth.Truth.assertThat
import com.google.common.truth.Truth.assertThat
import org.junit.Before
import org.junit.Test
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runner.RunWith


@@ -43,6 +44,11 @@ class StatusBarContentInsetsViewModelTest : SysuiTestCase() {


    private val Kosmos.underTest by Kosmos.Fixture { statusBarContentInsetsViewModel }
    private val Kosmos.underTest by Kosmos.Fixture { statusBarContentInsetsViewModel }


    @Before
    fun setUp() {
        kosmos.configurationController.fake.notifyLayoutDirectionChanged(isRtl = false)
    }

    @Test
    @Test
    fun contentArea_onMaxBoundsChanged_emitsNewValue() =
    fun contentArea_onMaxBoundsChanged_emitsNewValue() =
        kosmos.runTest {
        kosmos.runTest {