Merge "Adding dismiss-all method" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
abdb80a6d0
@@ -176,6 +176,13 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
|
||||
// Test UIDevice.pressHome, once we are in AllApps.
|
||||
mDevice.pressHome();
|
||||
waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL);
|
||||
|
||||
// Test dismissing all tasks.
|
||||
mLauncher.getWorkspace().switchToOverview().dismissAllTasks();
|
||||
waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL);
|
||||
executeOnLauncher(
|
||||
launcher -> assertEquals("Still have tasks after dismissing all",
|
||||
0, getTaskCount(launcher)));
|
||||
}
|
||||
|
||||
private int getCurrentOverviewPage(Launcher launcher) {
|
||||
|
||||
Reference in New Issue
Block a user