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

Commit f0123c91 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reset taskbarModePreference on tearDown()" into main

parents 0dedf3e6 5cec59a4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import com.android.launcher3.util.window.WindowManagerProxy
import junit.framework.Assert.assertFalse
import junit.framework.Assert.assertTrue
import kotlin.math.min
import org.junit.After
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@@ -137,6 +138,13 @@ class DisplayControllerTest {
        displayController.addChangeListener(displayInfoChangeListener)
    }

    @After
    fun tearDown() {
        // We need to reset the taskbar mode preference override even if a test throws an exception.
        // Otherwise, it may break the following tests' assumptions.
        DisplayController.enableTaskbarModePreferenceForTests(false)
    }

    @Test
    @UiThreadTest
    fun testRotation() {