Merge "Restoring the full set of combinations in testDragShortcutToMultipleWorkspaceCells in presubmit" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
47f192f3be
@@ -51,7 +51,6 @@ import com.android.launcher3.config.FeatureFlags.BooleanFlag;
|
||||
import com.android.launcher3.config.FeatureFlags.IntFlag;
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.tapl.Workspace;
|
||||
import com.android.launcher3.util.rule.TestStabilityRule;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
@@ -138,20 +137,13 @@ public class TestUtil {
|
||||
*/
|
||||
public static Point[] getCornersAndCenterPositions(LauncherInstrumentation launcher) {
|
||||
final Point dimensions = launcher.getWorkspace().getIconGridDimensions();
|
||||
if (TestStabilityRule.isPresubmit()) {
|
||||
// Return only center in presubmit to fit under the presubmit SLO.
|
||||
return new Point[]{
|
||||
new Point(dimensions.x / 2, dimensions.y / 2)
|
||||
};
|
||||
} else {
|
||||
return new Point[]{
|
||||
new Point(0, 1),
|
||||
new Point(0, dimensions.y - 2),
|
||||
new Point(dimensions.x - 1, 1),
|
||||
new Point(dimensions.x - 1, dimensions.y - 2),
|
||||
new Point(dimensions.x / 2, dimensions.y / 2)
|
||||
};
|
||||
}
|
||||
return new Point[]{
|
||||
new Point(0, 1),
|
||||
new Point(0, dimensions.y - 2),
|
||||
new Point(dimensions.x - 1, 1),
|
||||
new Point(dimensions.x - 1, dimensions.y - 2),
|
||||
new Point(dimensions.x / 2, dimensions.y / 2)
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user