More diags for missing widgets

Bug: 152645831
Change-Id: Idf6584220328a0853cd8dd65ebb5c54bab9980fd
This commit is contained in:
vadimt
2020-04-01 15:33:35 -07:00
parent 639aca6142
commit 00a031fbab

View File

@@ -275,8 +275,10 @@ public class BindWidgetTest extends AbstractLauncherUiTest {
}
private void verifyPendingWidgetPresent() {
final Widget widget = mLauncher.getWorkspace().tryGetPendingWidget(DEFAULT_UI_TIMEOUT);
if (widget == null) mLauncher.dumpViewHierarchy(); // b/152645831
assertTrue("Pending widget is not present",
mLauncher.getWorkspace().tryGetPendingWidget(DEFAULT_UI_TIMEOUT) != null);
widget != null);
}
/**