summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-10-03 17:09:16 -0700
committervadimt <vadimt@google.com>2019-10-03 17:09:16 -0700
commit43c3d2d40aded198d52dfdac731ef4f3ce1b7223 (patch)
tree86a9470b9a69bab92062b269ee43de4239d439b2 /tests
parentc49ec381409b38828a549c25056d1d80423d7e83 (diff)
downloadandroid_packages_apps_Trebuchet-43c3d2d40aded198d52dfdac731ef4f3ce1b7223.tar.gz
android_packages_apps_Trebuchet-43c3d2d40aded198d52dfdac731ef4f3ce1b7223.tar.bz2
android_packages_apps_Trebuchet-43c3d2d40aded198d52dfdac731ef4f3ce1b7223.zip
Diagnosing anomalies prior to swiping up to Home
Bug: 141864547 Change-Id: I5f3814c6a90df85136484813ca4ee684da101016
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index 2e9cb81f0..28f57f0eb 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -543,6 +543,9 @@ public final class LauncherInstrumentation {
// accessibility events prior to pressing Home.
final String action;
if (getNavigationModel() == NavigationModel.ZERO_BUTTON) {
+ final String anomaly = getAnomalyMessage();
+ if (anomaly != null) fail("Can't swipe up to Home: " + anomaly);
+
final Point displaySize = getRealDisplaySize();
if (hasLauncherObject("deep_shortcuts_container")) {