Migrate model tests to multivalent
Also migrating some other tests that have been verified Test: SysUI studio Test: atest NexusLauncherRoboTests Flag: TEST_ONLY Change-Id: I072201b8e7b98945ca88657fe813fef4727f16e4
This commit is contained in:
1 parent
109f516e3e
commit
58e8573085
28 files changed
+673
-193
No files matched your search
@@ -26,6 +26,7 @@ import static com.android.launcher3.BubbleTextView.DISPLAY_ALL_APPS;
|
||||
import static com.android.launcher3.BubbleTextView.DISPLAY_PREDICTION_ROW;
|
||||
import static com.android.launcher3.BubbleTextView.DISPLAY_SEARCH_RESULT;
|
||||
import static com.android.launcher3.BubbleTextView.DISPLAY_SEARCH_RESULT_SMALL;
|
||||
import static com.android.launcher3.Flags.FLAG_ENABLE_SUPPORT_FOR_ARCHIVING;
|
||||
import static com.android.launcher3.Flags.FLAG_USE_NEW_ICON_FOR_ARCHIVED_APPS;
|
||||
import static com.android.launcher3.LauncherPrefs.ENABLE_TWOLINE_ALLAPPS_TOGGLE;
|
||||
import static com.android.launcher3.model.data.ItemInfoWithIcon.FLAG_ARCHIVED;
|
||||
@@ -416,7 +417,7 @@ public class BubbleTextViewTest {
|
||||
assertThat(mBubbleTextView.getIcon().hasBadge()).isEqualTo(false);
|
||||
}
|
||||
|
||||
@EnableFlags(FLAG_USE_NEW_ICON_FOR_ARCHIVED_APPS)
|
||||
@EnableFlags({FLAG_ENABLE_SUPPORT_FOR_ARCHIVING, FLAG_USE_NEW_ICON_FOR_ARCHIVED_APPS})
|
||||
@Test
|
||||
public void applyIconAndLabel_setsImageSpan_whenInactiveArchivedApp() {
|
||||
// Given
|
||||
@@ -452,7 +453,7 @@ public class BubbleTextViewTest {
|
||||
assertThat(actualSpan.getVerticalAlignment()).isEqualTo(ALIGN_CENTER);
|
||||
}
|
||||
|
||||
@EnableFlags(FLAG_USE_NEW_ICON_FOR_ARCHIVED_APPS)
|
||||
@EnableFlags({FLAG_ENABLE_SUPPORT_FOR_ARCHIVING, FLAG_USE_NEW_ICON_FOR_ARCHIVED_APPS})
|
||||
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.S)
|
||||
@Test
|
||||
public void applyIconAndLabel_setsBoldDrawable_whenBoldedTextForArchivedApp() {
|
||||
|
||||
Reference in new issue
Block a user