Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.Shadows.shadowOf
import org.robolectric.shadows.ShadowDialog
import org.robolectric.annotation.Config
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
Expand All @@ -31,7 +30,6 @@ import org.wordpress.gutenberg.model.EditorConfiguration
import org.wordpress.gutenberg.model.EditorDependencies

@RunWith(RobolectricTestRunner::class)
@Config(sdk = [28])
class GutenbergViewTest {
@Mock
private lateinit var mockWebView: WebView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.wordpress.gutenberg.model.EditorConfiguration
import org.wordpress.gutenberg.model.EditorDependencies

@RunWith(RobolectricTestRunner::class)
@Config(sdk = [28], manifest = Config.NONE)
@Config(manifest = Config.NONE)
class GutenbergViewUploadServerTest {

private val testScope = TestScope()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config

/**
* Robolectric is required because [parseSvgColor] delegates to [Color.parseColor]
* for named colours and the resulting ARGB ints are produced via [Color.argb].
*/
@RunWith(RobolectricTestRunner::class)
@Config(sdk = [28])
class SvgIconCacheTest {

// -- parseSvgColor ----------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.annotation.Config
import org.wordpress.gutenberg.R

@RunWith(RobolectricTestRunner::class)
@Config(sdk = [28])
class EditorErrorViewTest {

@Test
Expand Down
2 changes: 2 additions & 0 deletions android/Gutenberg/src/test/resources/robolectric.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Robolectric otherwise defaults to the manifest's targetSdk, which requires a newer JVM than CI runs.
sdk=35
Loading