Merge "Reduce the number of rotations of flicker tests" am: b6d051c228
Change-Id: I04c4587ecd3d7406c95f5a177356fa1a6b3763d0
This commit is contained in:
@@ -66,7 +66,7 @@ public class ChangeAppRotationTest extends FlickerTestBase {
|
|||||||
@Parameters(name = "{0}-{1}")
|
@Parameters(name = "{0}-{1}")
|
||||||
public static Collection<Object[]> getParams() {
|
public static Collection<Object[]> getParams() {
|
||||||
int[] supportedRotations =
|
int[] supportedRotations =
|
||||||
{Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_270};
|
{Surface.ROTATION_0, Surface.ROTATION_90};
|
||||||
Collection<Object[]> params = new ArrayList<>();
|
Collection<Object[]> params = new ArrayList<>();
|
||||||
for (int begin : supportedRotations) {
|
for (int begin : supportedRotations) {
|
||||||
for (int end : supportedRotations) {
|
for (int end : supportedRotations) {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class SeamlessAppRotationTest extends FlickerTestBase {
|
|||||||
@Parameters(name = "{0}")
|
@Parameters(name = "{0}")
|
||||||
public static Collection<Object[]> getParams() {
|
public static Collection<Object[]> getParams() {
|
||||||
int[] supportedRotations =
|
int[] supportedRotations =
|
||||||
{Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_270};
|
{Surface.ROTATION_0, Surface.ROTATION_90};
|
||||||
Collection<Object[]> params = new ArrayList<>();
|
Collection<Object[]> params = new ArrayList<>();
|
||||||
|
|
||||||
ArrayList<Intent> testIntents = new ArrayList<>();
|
ArrayList<Intent> testIntents = new ArrayList<>();
|
||||||
@@ -112,7 +112,7 @@ public class SeamlessAppRotationTest extends FlickerTestBase {
|
|||||||
|
|
||||||
super.runTransition(
|
super.runTransition(
|
||||||
changeAppRotation(mIntent, intentId, InstrumentationRegistry.getContext(),
|
changeAppRotation(mIntent, intentId, InstrumentationRegistry.getContext(),
|
||||||
mUiDevice, mBeginRotation, mEndRotation).repeat(5).build());
|
mUiDevice, mBeginRotation, mEndRotation).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user