From 61d8afc628a386a256600833725b4dfbb2ec1a68 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 8 Oct 2018 17:15:34 -0700 Subject: [PATCH] Keep hunting down flakes in testOpenCloseMessagesApp More logging + removing a deprecated method. Bug: 110103162 Test: TaplTests Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8 --- tests/tapl/com/android/launcher3/tapl/AppIcon.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/AppIcon.java b/tests/tapl/com/android/launcher3/tapl/AppIcon.java index a11f6df0a2..b7ae9f1497 100644 --- a/tests/tapl/com/android/launcher3/tapl/AppIcon.java +++ b/tests/tapl/com/android/launcher3/tapl/AppIcon.java @@ -39,23 +39,11 @@ public final class AppIcon { return By.clazz(TextView.class).text(appName).pkg(LauncherInstrumentation.LAUNCHER_PKG); } - /** - * 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));