Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsControllerTest.kt +1 −2 Original line number Diff line number Diff line Loading @@ -65,9 +65,8 @@ class TaskbarAllAppsControllerTest { } @Test @UiThreadTest fun testToggle_taskbarRecreated_allAppsReopened() { allAppsController.toggle() getInstrumentation().runOnMainSync { allAppsController.toggle() } taskbarUnitTestRule.recreateTaskbar() assertThat(allAppsController.isOpen).isTrue() } Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayControllerTest.kt +3 −2 Original line number Diff line number Diff line Loading @@ -150,9 +150,10 @@ class TaskbarOverlayControllerTest { } @Test @UiThreadTest fun testRecreateTaskbar_closesWindow() { getInstrumentation().runOnMainSync { TestOverlayView.show(overlayController.requestWindow()) } taskbarUnitTestRule.recreateTaskbar() assertThat(hasOpenView(taskbarContext, TYPE_TASKBAR_OVERLAY_PROXY)).isFalse() } Loading quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/TaskbarUnitTestRule.kt +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ class TaskbarUnitTestRule(private val testInstance: Any, private val context: Co /** Simulates Taskbar recreation lifecycle. */ fun recreateTaskbar() { taskbarManager.recreateTaskbar() instrumentation.runOnMainSync { taskbarManager.recreateTaskbar() } injectControllers() } Loading Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsControllerTest.kt +1 −2 Original line number Diff line number Diff line Loading @@ -65,9 +65,8 @@ class TaskbarAllAppsControllerTest { } @Test @UiThreadTest fun testToggle_taskbarRecreated_allAppsReopened() { allAppsController.toggle() getInstrumentation().runOnMainSync { allAppsController.toggle() } taskbarUnitTestRule.recreateTaskbar() assertThat(allAppsController.isOpen).isTrue() } Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/overlay/TaskbarOverlayControllerTest.kt +3 −2 Original line number Diff line number Diff line Loading @@ -150,9 +150,10 @@ class TaskbarOverlayControllerTest { } @Test @UiThreadTest fun testRecreateTaskbar_closesWindow() { getInstrumentation().runOnMainSync { TestOverlayView.show(overlayController.requestWindow()) } taskbarUnitTestRule.recreateTaskbar() assertThat(hasOpenView(taskbarContext, TYPE_TASKBAR_OVERLAY_PROXY)).isFalse() } Loading
quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/TaskbarUnitTestRule.kt +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ class TaskbarUnitTestRule(private val testInstance: Any, private val context: Co /** Simulates Taskbar recreation lifecycle. */ fun recreateTaskbar() { taskbarManager.recreateTaskbar() instrumentation.runOnMainSync { taskbarManager.recreateTaskbar() } injectControllers() } Loading