Loading tests/multivalentTests/src/com/android/launcher3/util/DisplayControllerTest.kt +8 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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() { Loading Loading
tests/multivalentTests/src/com/android/launcher3/util/DisplayControllerTest.kt +8 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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() { Loading