mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Merge "Adding screenrecord to debug themeIconTest" into tm-qpr-dev am: ed882317da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20590312 Change-Id: Iace23ca364fa60fb0357b9586746be78d57cb63f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -35,6 +35,8 @@ import com.android.launcher3.tapl.HomeAppIcon;
|
||||
import com.android.launcher3.tapl.HomeAppIconMenuItem;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TaplTestsLauncher3;
|
||||
import com.android.launcher3.util.Executors;
|
||||
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -109,6 +111,7 @@ public class ThemeIconsTest extends AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/260722220
|
||||
public void testShortcutIconWithTheme() throws Exception {
|
||||
setThemeEnabled(true);
|
||||
TaplTestsLauncher3.initialize(this);
|
||||
@@ -128,6 +131,13 @@ public class ThemeIconsTest extends AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
private void verifyIconTheme(String title, ViewGroup parent, boolean isThemed) {
|
||||
// Wait for Launcher model to be completed
|
||||
try {
|
||||
Executors.MODEL_EXECUTOR.submit(() -> { }).get();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
// Find the app icon
|
||||
Queue<View> viewQueue = new ArrayDeque<>();
|
||||
viewQueue.add(parent);
|
||||
|
||||
Reference in New Issue
Block a user