summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2019-10-04 00:48:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-10-04 00:48:34 +0000
commitc3a4819b8ccac87952ef971030fb346d6af128f3 (patch)
treec5b85ead26529f20c29c76bdf2c87ed94cc18796 /tests
parent233afe98e92935e2f5cf0813994a84fdc7763b4d (diff)
parent43c3d2d40aded198d52dfdac731ef4f3ce1b7223 (diff)
downloadandroid_packages_apps_Trebuchet-c3a4819b8ccac87952ef971030fb346d6af128f3.tar.gz
android_packages_apps_Trebuchet-c3a4819b8ccac87952ef971030fb346d6af128f3.tar.bz2
android_packages_apps_Trebuchet-c3a4819b8ccac87952ef971030fb346d6af128f3.zip
Merge "Diagnosing anomalies prior to swiping up to Home" into ub-launcher3-qt-qpr1-dev
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 24d4964d5..c52650da4 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")) {