Update some screenshot tests to be
@MediumTest
In order to verify more ui-material
components as part of presubmit,
change the test annotation from
@LargeTest to @MediumTest so that
they will run even when other modules
are changed as part of a CL:
Change-Id: Iccf102722eb036b712c7786624e93642ae8a8d6e
Fixes: 160625000
Test: this
diff --git a/ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.kt b/ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.kt
index 4df0f3e..6901f48 100644
--- a/ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.kt
+++ b/ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.kt
@@ -16,7 +16,7 @@
package androidx.ui.material
import android.os.Build
-import androidx.test.filters.LargeTest
+import androidx.test.filters.MediumTest
import androidx.test.filters.SdkSuppress
import androidx.test.screenshot.AndroidXScreenshotTestRule
import androidx.test.screenshot.assertAgainstGolden
@@ -41,7 +41,7 @@
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
-@LargeTest
+@MediumTest
@RunWith(JUnit4::class)
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.O)
class ButtonScreenshotTest {
diff --git a/ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt b/ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt
index 8b5e326..f10d795 100644
--- a/ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt
+++ b/ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt
@@ -17,7 +17,7 @@
import android.os.Build
import androidx.compose.state
-import androidx.test.filters.LargeTest
+import androidx.test.filters.MediumTest
import androidx.test.filters.SdkSuppress
import androidx.test.screenshot.AndroidXScreenshotTestRule
import androidx.test.screenshot.assertAgainstGolden
@@ -43,7 +43,7 @@
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
-@LargeTest
+@MediumTest
@RunWith(JUnit4::class)
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.O)
class CheckboxScreenshotTest {
diff --git a/ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt b/ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt
index abe539d..104ae67 100644
--- a/ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt
+++ b/ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt
@@ -18,7 +18,7 @@
import android.os.Build
import androidx.compose.state
-import androidx.test.filters.LargeTest
+import androidx.test.filters.MediumTest
import androidx.test.filters.SdkSuppress
import androidx.test.screenshot.AndroidXScreenshotTestRule
import androidx.test.screenshot.assertAgainstGolden
@@ -43,7 +43,7 @@
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
-@LargeTest
+@MediumTest
@RunWith(JUnit4::class)
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.O)
class RadioButtonScreenshotTest {
diff --git a/ui/ui-material/src/androidTest/java/androidx/ui/material/SwitchScreenshotTest.kt b/ui/ui-material/src/androidTest/java/androidx/ui/material/SwitchScreenshotTest.kt
index 921d5d7..2170258 100644
--- a/ui/ui-material/src/androidTest/java/androidx/ui/material/SwitchScreenshotTest.kt
+++ b/ui/ui-material/src/androidTest/java/androidx/ui/material/SwitchScreenshotTest.kt
@@ -18,7 +18,7 @@
import android.os.Build
import androidx.compose.state
-import androidx.test.filters.LargeTest
+import androidx.test.filters.MediumTest
import androidx.test.filters.SdkSuppress
import androidx.test.screenshot.AndroidXScreenshotTestRule
import androidx.test.screenshot.assertAgainstGolden
@@ -44,7 +44,7 @@
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
-@LargeTest
+@MediumTest
@RunWith(JUnit4::class)
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.O)
class SwitchScreenshotTest {