Loading tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +0 −4 Original line number Diff line number Diff line Loading @@ -542,10 +542,6 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { mLauncher.getWorkspace().verifyWorkspaceAppIconIsGone( DUMMY_APP_NAME + " was expected to disappear after uninstall.", DUMMY_APP_NAME); // Debug for b/288944469 I want to test if we are not waiting enough after removing // the icon to request the list of icons again, since the items are not removed // immediately. This should reduce the flake rate SystemClock.sleep(500); Map<String, Point> finalPositions = mLauncher.getWorkspace().getWorkspaceIconsPositions(); assertThat(finalPositions).doesNotContainKey(DUMMY_APP_NAME); Loading tests/tapl/com/android/launcher3/tapl/Workspace.java +5 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import static junit.framework.TestCase.assertTrue; import android.graphics.Point; import android.graphics.Rect; import android.os.SystemClock; import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; Loading Loading @@ -286,6 +287,10 @@ public final class Workspace extends Home { final UiObject2 workspace = verifyActiveContainer(); List<UiObject2> workspaceIcons = mLauncher.waitForObjectsInContainer(workspace, AppIcon.getAnyAppIconSelector()); Log.d("b/288944469", "List size = " + workspaceIcons.size()); for (int i = 0; i < workspaceIcons.size(); i++) { Log.d("b/288944469", "index = " + i + " tesxt = " + workspaceIcons.get(i).getText()); } return workspaceIcons.stream() .collect( Collectors.toMap( Loading Loading
tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +0 −4 Original line number Diff line number Diff line Loading @@ -542,10 +542,6 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { mLauncher.getWorkspace().verifyWorkspaceAppIconIsGone( DUMMY_APP_NAME + " was expected to disappear after uninstall.", DUMMY_APP_NAME); // Debug for b/288944469 I want to test if we are not waiting enough after removing // the icon to request the list of icons again, since the items are not removed // immediately. This should reduce the flake rate SystemClock.sleep(500); Map<String, Point> finalPositions = mLauncher.getWorkspace().getWorkspaceIconsPositions(); assertThat(finalPositions).doesNotContainKey(DUMMY_APP_NAME); Loading
tests/tapl/com/android/launcher3/tapl/Workspace.java +5 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import static junit.framework.TestCase.assertTrue; import android.graphics.Point; import android.graphics.Rect; import android.os.SystemClock; import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; Loading Loading @@ -286,6 +287,10 @@ public final class Workspace extends Home { final UiObject2 workspace = verifyActiveContainer(); List<UiObject2> workspaceIcons = mLauncher.waitForObjectsInContainer(workspace, AppIcon.getAnyAppIconSelector()); Log.d("b/288944469", "List size = " + workspaceIcons.size()); for (int i = 0; i < workspaceIcons.size(); i++) { Log.d("b/288944469", "index = " + i + " tesxt = " + workspaceIcons.get(i).getText()); } return workspaceIcons.stream() .collect( Collectors.toMap( Loading