Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a29eed89 authored by András Klöczl's avatar András Klöczl Committed by Android (Google) Code Review
Browse files

Merge "Fix two panel tapl test dragging issue"

parents b374beda 659cfbe1
Loading
Loading
Loading
Loading
+8 −16
Original line number Diff line number Diff line
@@ -64,8 +64,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testDragIconToRightPanel() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -79,8 +78,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testSinglePageDragIconWhenMultiplePageScrollingIsPossible() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -134,8 +132,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testDragIconToPage2() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -151,8 +148,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testDragIconToPage3() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -168,8 +164,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testMultiplePageDragIcon() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -215,8 +210,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -256,8 +250,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testEmptyPagesGetRemovedIfBothPagesAreEmpty() {
        Workspace workspace = mLauncher.getWorkspace();

@@ -284,8 +277,7 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
    }

    @Test
    // TODO(b/197631877) Enable in portrait.
    // @PortraitLandscape
    @PortraitLandscape
    public void testMiddleEmptyPagesGetRemoved() {
        Workspace workspace = mLauncher.getWorkspace();

+2 −1
Original line number Diff line number Diff line
@@ -385,7 +385,8 @@ public final class Workspace extends Home {
            // Since the destination can be on another page, we need to drag to the edge first
            // until we reach the target page
            while (targetDest.x > displayX || targetDest.x < 0) {
                int edgeX = targetDest.x > 0 ? displayX : 0;
                // TODO: b/219919285
                int edgeX = targetDest.x > 0 ? displayX - 1 : 1;
                Point screenEdge = new Point(edgeX, targetDest.y);
                Point finalDragStart = dragStart;
                executeAndWaitForPageScroll(launcher,