Merge "Ignore failing tests of com.android.settings.homepage.contextualcards.slices" into main
This commit is contained in:
@@ -42,6 +42,7 @@ import com.android.settings.slices.SlicesFeatureProviderImpl;
|
||||
import com.android.settings.testutils.FakeFeatureFactory;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -129,6 +130,7 @@ public class DarkThemeSliceTest {
|
||||
assertThat(mDarkThemeSlice.isAvailable(mContext)).isTrue();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getSlice_batterySaver_returnErrorSlice() {
|
||||
when(mPowerManager.isPowerSaveMode()).thenReturn(true);
|
||||
@@ -138,6 +140,7 @@ public class DarkThemeSliceTest {
|
||||
assertThat(metadata.isErrorSlice()).isTrue();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getSlice_notAvailable_returnErrorSlice() {
|
||||
mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES;
|
||||
@@ -147,6 +150,7 @@ public class DarkThemeSliceTest {
|
||||
assertThat(metadata.isErrorSlice()).isTrue();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getSlice_newSession_notAvailable_returnErrorSlice() {
|
||||
// previous displayed: yes
|
||||
@@ -173,6 +177,7 @@ public class DarkThemeSliceTest {
|
||||
assertThat(mDarkThemeSlice.getSlice()).isNotNull();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getSlice_sliceNotClicked_notAvailable_returnErrorSlice() {
|
||||
mDarkThemeSlice.sSliceClicked = false;
|
||||
|
@@ -50,6 +50,7 @@ import com.android.settings.homepage.contextualcards.ContextualCardsFragment;
|
||||
import com.android.settings.homepage.contextualcards.ControllerRendererPool;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -100,6 +101,7 @@ public class SliceContextualCardRendererTest {
|
||||
.isNull();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void bindView_viewTypeFullWidth_shouldSetCachedSlice() {
|
||||
final RecyclerView.ViewHolder viewHolder = getSliceViewHolder();
|
||||
@@ -111,6 +113,7 @@ public class SliceContextualCardRendererTest {
|
||||
.isNotNull();
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void bindView_viewTypeSticky_shouldSetCachedSlice() {
|
||||
final RecyclerView.ViewHolder viewHolder = spy(getStickyViewHolder());
|
||||
|
@@ -36,6 +36,7 @@ import com.android.settings.homepage.contextualcards.conditional.ConditionContex
|
||||
import com.android.settings.homepage.contextualcards.slices.SliceFullCardRendererHelper.SliceViewHolder;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -67,12 +68,14 @@ public class SwipeDismissalDelegateTest {
|
||||
mDismissalDelegate = new SwipeDismissalDelegate(mDismissalDelegateListener);
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getMovementFlags_conditionalViewHolder_shouldDisableSwipe() {
|
||||
assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, getConditionalViewHolder()))
|
||||
.isEqualTo(0);
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getMovementFlags_dismissalView_shouldDisableSwipe() {
|
||||
final RecyclerView.ViewHolder holder = getSliceViewHolder();
|
||||
@@ -81,6 +84,7 @@ public class SwipeDismissalDelegateTest {
|
||||
assertThat(mDismissalDelegate.getMovementFlags(mRecyclerView, holder)).isEqualTo(0);
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void getMovementFlags_SliceViewHolder_shouldEnableSwipe() {
|
||||
final RecyclerView.ViewHolder holder = getSliceViewHolder();
|
||||
@@ -90,6 +94,7 @@ public class SwipeDismissalDelegateTest {
|
||||
.isNotEqualTo(0);
|
||||
}
|
||||
|
||||
@Ignore("b/313598030")
|
||||
@Test
|
||||
public void onSwipe_shouldNotifyListener() {
|
||||
mDismissalDelegate.onSwiped(getSliceViewHolder(), 1);
|
||||
|
Reference in New Issue
Block a user