mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Not using Settings in TaplTestsLauncher3.testDragAppIcon
Settings frequently crashes Bug: 126587956 Change-Id: Ied62d6f8783d8f0f9c434bdd8ee14c62d6cbc4c1
This commit is contained in:
@@ -330,9 +330,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
public void testDragAppIcon() throws Throwable {
|
||||
try {
|
||||
TestProtocol.sDebugTracing = true;
|
||||
LauncherActivityInfo settingsApp = getSettingsApp();
|
||||
|
||||
final String appName = settingsApp.getLabel().toString();
|
||||
final String appName = "LauncherTestApp";
|
||||
// 1. Open all apps and wait for load complete.
|
||||
// 2. Drag icon to homescreen.
|
||||
// 3. Verify that the icon works on homescreen.
|
||||
@@ -341,7 +339,7 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
getAppIcon(appName).
|
||||
dragToWorkspace().
|
||||
getWorkspaceAppIcon(appName).
|
||||
launch(settingsApp.getComponentName().getPackageName());
|
||||
launch(getInstrumentation().getContext().getPackageName());
|
||||
} finally {
|
||||
TestProtocol.sDebugTracing = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user