summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2018-10-08 17:15:34 -0700
committerVadim Tryshev <vadimt@google.com>2018-10-08 17:15:34 -0700
commit61d8afc628a386a256600833725b4dfbb2ec1a68 (patch)
tree0949a5c064628997dc65125ee9c25e28de068293 /tests
parent972045236311f884b61486954b4dce4f5ed7ac60 (diff)
downloadandroid_packages_apps_Trebuchet-61d8afc628a386a256600833725b4dfbb2ec1a68.tar.gz
android_packages_apps_Trebuchet-61d8afc628a386a256600833725b4dfbb2ec1a68.tar.bz2
android_packages_apps_Trebuchet-61d8afc628a386a256600833725b4dfbb2ec1a68.zip
Keep hunting down flakes in testOpenCloseMessagesApp
More logging + removing a deprecated method. Bug: 110103162 Test: TaplTests Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/AppIcon.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/AppIcon.java b/tests/tapl/com/android/launcher3/tapl/AppIcon.java
index a11f6df0a..b7ae9f149 100644
--- a/tests/tapl/com/android/launcher3/tapl/AppIcon.java
+++ b/tests/tapl/com/android/launcher3/tapl/AppIcon.java
@@ -42,20 +42,8 @@ public final class AppIcon {
/**
* Clicks the icon to launch its app.
*/
- @Deprecated
- public Background launch() {
- LauncherInstrumentation.log("AppIcon.launch before click");
- LauncherInstrumentation.assertTrue(
- "Launching an app didn't open a new window: " + mIcon.getText(),
- mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));
- return new Background(mLauncher);
- }
-
- /**
- * Clicks the icon to launch its app.
- */
public Background launch(String packageName) {
- LauncherInstrumentation.log("AppIcon.launch before click");
+ LauncherInstrumentation.log("AppIcon.launch before click " + mIcon.getVisibleCenter());
LauncherInstrumentation.assertTrue(
"Launching an app didn't open a new window: " + mIcon.getText(),
mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));