summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2019-10-03 18:11:32 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-10-03 18:11:32 -0700
commitaf754b9a9af47448916a4382aeaedd2e93c3b599 (patch)
tree48f98f18f2672794f0ba9e2b6e9592b6bfd0c674 /tests
parent3878d3ef095175c6c0b45d36dbfef03dda0a956d (diff)
parentc3a4819b8ccac87952ef971030fb346d6af128f3 (diff)
downloadandroid_packages_apps_Trebuchet-af754b9a9af47448916a4382aeaedd2e93c3b599.tar.gz
android_packages_apps_Trebuchet-af754b9a9af47448916a4382aeaedd2e93c3b599.tar.bz2
android_packages_apps_Trebuchet-af754b9a9af47448916a4382aeaedd2e93c3b599.zip
Merge "Diagnosing anomalies prior to swiping up to Home" into ub-launcher3-qt-qpr1-dev
am: c3a4819b8c Change-Id: Ifc6a781cea4dc38b58435314b8760e89b327446a
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")) {