Keep hunting down flakes in testOpenCloseMessagesApp
More logging + removing a deprecated method. Bug: 110103162 Test: TaplTests Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8
This commit is contained in:
parent
9720452363
commit
61d8afc628
|
@ -39,23 +39,11 @@ public final class AppIcon {
|
||||||
return By.clazz(TextView.class).text(appName).pkg(LauncherInstrumentation.LAUNCHER_PKG);
|
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.
|
* Clicks the icon to launch its app.
|
||||||
*/
|
*/
|
||||||
public Background launch(String packageName) {
|
public Background launch(String packageName) {
|
||||||
LauncherInstrumentation.log("AppIcon.launch before click");
|
LauncherInstrumentation.log("AppIcon.launch before click " + mIcon.getVisibleCenter());
|
||||||
LauncherInstrumentation.assertTrue(
|
LauncherInstrumentation.assertTrue(
|
||||||
"Launching an app didn't open a new window: " + mIcon.getText(),
|
"Launching an app didn't open a new window: " + mIcon.getText(),
|
||||||
mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));
|
mIcon.clickAndWait(Until.newWindow(), LauncherInstrumentation.WAIT_TIME_MS));
|
||||||
|
|
Loading…
Reference in New Issue