Fixing broken instrumentation tests when run from command line
Change-Id: I923cdbaaaf18c9b765d1e70122b92cd2c1621e06
This commit is contained in:
1 parent
b8f00da8de
commit
7eab3cc374
7 files changed
+25
-49
No files matched your search
@@ -109,7 +109,7 @@ public class BindWidgetTest extends InstrumentationTestCase {
|
||||
public void testUnboundWidget_removed() throws Exception {
|
||||
LauncherAppWidgetProviderInfo info = findWidgetProvider(false);
|
||||
LauncherAppWidgetInfo item = createWidgetInfo(info, false);
|
||||
item.appWidgetId = 33;
|
||||
item.appWidgetId = -33;
|
||||
|
||||
// Since there is no widget to verify, just wait until the workspace is ready.
|
||||
setupAndVerifyContents(item, Workspace.class, null);
|
||||
@@ -253,6 +253,7 @@ public class BindWidgetTest extends InstrumentationTestCase {
|
||||
runTestOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
LauncherClings.markFirstRunClingDismissed(mTargetContext);
|
||||
ManagedProfileHeuristic.markExistingUsersForNoFolderCreation(mTargetContext);
|
||||
LauncherAppState.getInstance().getModel().resetLoadedState(true, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user