diff options
author | vadimt <vadimt@google.com> | 2019-08-05 13:52:36 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-08-05 13:52:36 -0700 |
commit | f1726290d46c1c7072d6741226d1973844a1b807 (patch) | |
tree | 521dcaa0a579287922923c7751b7ca4146654950 /tests | |
parent | 9447e887db176a2db655628a1e2bd271e0778729 (diff) | |
download | android_packages_apps_Trebuchet-f1726290d46c1c7072d6741226d1973844a1b807.tar.gz android_packages_apps_Trebuchet-f1726290d46c1c7072d6741226d1973844a1b807.tar.bz2 android_packages_apps_Trebuchet-f1726290d46c1c7072d6741226d1973844a1b807.zip |
Adding debug tracing to catch non-dragging to workspace
Bug: 138729456
Change-Id: I28f1eaeb17a75cbc6f52b259d0226deaff42e0bb
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java index c2a3c1c52..0c87ab908 100644 --- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java @@ -173,6 +173,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { @Test public void testWorkspace() throws Exception { + mLauncher.enableDebugTracing(); final Workspace workspace = mLauncher.getWorkspace(); // Test that ensureWorkspaceIsScrollable adds a page by dragging an icon there. @@ -208,6 +209,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { // Test starting a workspace app. final AppIcon app = workspace.getWorkspaceAppIcon("Chrome"); assertNotNull("No Chrome app in workspace", app); + mLauncher.disableDebugTracing(); } public static void runIconLaunchFromAllAppsTest(AbstractLauncherUiTest test, AllApps allApps) { @@ -298,6 +300,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { @Test @PortraitLandscape public void testDragAppIcon() throws Throwable { + mLauncher.enableDebugTracing(); // 1. Open all apps and wait for load complete. // 2. Drag icon to homescreen. // 3. Verify that the icon works on homescreen. @@ -314,11 +317,13 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { "Launcher activity is the top activity; expecting another activity to be the top " + "one", isInBackground(launcher))); + mLauncher.disableDebugTracing(); } @Test @PortraitLandscape public void testDragShortcut() throws Throwable { + mLauncher.enableDebugTracing(); // 1. Open all apps and wait for load complete. // 2. Find the app and long press it to show shortcuts. // 3. Press icon center until shortcuts appear @@ -338,6 +343,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { } finally { allApps.unfreeze(); } + mLauncher.disableDebugTracing(); } public static String getAppPackageName() { |