mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
More temporary logging to diagnose testPendingWidget_autoRestored
And waiting to loader to finish to improve determinism. Bug: 117332845 Test: running Launcher Change-Id: Icdfce969b61f8ceb952a2715037783458da4d4c4
This commit is contained in:
@@ -298,6 +298,11 @@ public abstract class AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
protected void resetLoaderState() {
|
||||
if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS
|
||||
&& com.android.launcher3.Utilities.IS_DEBUG_DEVICE) {
|
||||
android.util.Log.d("b/117332845",
|
||||
"START " + android.util.Log.getStackTraceString(new Throwable()));
|
||||
}
|
||||
try {
|
||||
mMainThreadExecutor.execute(new Runnable() {
|
||||
@Override
|
||||
@@ -308,6 +313,13 @@ public abstract class AbstractLauncherUiTest {
|
||||
} catch (Throwable t) {
|
||||
throw new IllegalArgumentException(t);
|
||||
}
|
||||
waitForLauncherCondition(launcher ->
|
||||
LauncherAppState.getInstance(mTargetContext).getModel().isModelLoaded());
|
||||
if (com.android.launcher3.Utilities.IS_RUNNING_IN_TEST_HARNESS
|
||||
&& com.android.launcher3.Utilities.IS_DEBUG_DEVICE) {
|
||||
android.util.Log.d("b/117332845",
|
||||
"FINISH " + android.util.Log.getStackTraceString(new Throwable()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user