Enabling event verification for Launcher3
Will help investigating otherwise mysterious failures. Change-Id: I805ed136baf6d86921fdb4782304fcdafbd3af5c
This commit is contained in:
1 parent
74e78e95a8
commit
16eca5500d
2 files changed
+17
-14
No files matched your search
@@ -42,10 +42,13 @@ public class AddToHomeScreenPrompt {
|
||||
try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) {
|
||||
if (mLauncher.getNavigationModel()
|
||||
!= LauncherInstrumentation.NavigationModel.THREE_BUTTON) {
|
||||
mLauncher.expectEvent(
|
||||
TestProtocol.SEQUENCE_TIS, LauncherInstrumentation.EVENT_TOUCH_DOWN_TIS);
|
||||
mLauncher.expectEvent(
|
||||
TestProtocol.SEQUENCE_TIS, LauncherInstrumentation.EVENT_TOUCH_UP_TIS);
|
||||
if (!mLauncher.isLauncher3()) {
|
||||
mLauncher.expectEvent(
|
||||
TestProtocol.SEQUENCE_TIS,
|
||||
LauncherInstrumentation.EVENT_TOUCH_DOWN_TIS);
|
||||
mLauncher.expectEvent(
|
||||
TestProtocol.SEQUENCE_TIS, LauncherInstrumentation.EVENT_TOUCH_UP_TIS);
|
||||
}
|
||||
}
|
||||
mLauncher.waitForObjectInContainer(
|
||||
mWidgetCell.getParent().getParent().getParent().getParent(),
|
||||
|
||||
Reference in new issue
Block a user