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

Commit 85b5ef43 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9050073 from 30c3552e to tm-qpr1-release

Change-Id: Icce95a4472b89d983e84a0c1f391ffb5dcfa1de7
parents 470e87db 30c3552e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -214,9 +214,9 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
        // Test that ensureWorkspaceIsScrollable adds a page by dragging an icon there.
        executeOnLauncher(launcher -> assertFalse("Initial workspace state is scrollable",
                isWorkspaceScrollable(launcher)));
        workspace.verifyWorkspaceAppIconIsGone(
                "Chrome app was found on empty workspace", "Chrome");

        assertEquals("Initial workspace doesn't have the correct page", workspace.pagesPerScreen(),
                workspace.getPageCount());
        workspace.verifyWorkspaceAppIconIsGone("Chrome app was found on empty workspace", "Chrome");
        workspace.ensureWorkspaceIsScrollable();

        executeOnLauncher(
+6 −0
Original line number Diff line number Diff line
@@ -192,6 +192,12 @@ public final class Workspace extends Home {
        }
    }

    /** Returns the number of pages. */
    public int getPageCount() {
        final UiObject2 workspace = verifyActiveContainer();
        return workspace.getChildCount();
    }

    /**
     * Returns the number of pages that are visible on the screen simultaneously.
     */