Skip to content

Commit

Permalink
Enable all tests in VideoSizeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Feb 14, 2024
1 parent 8837c8f commit 39e6aec
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import android.util.Rational
import androidx.media3.common.VideoSize
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.runner.RunWith
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals

Expand Down Expand Up @@ -79,21 +78,18 @@ class VideoSizeTest {
}

@Test
@Ignore("https://github.com/robolectric/robolectric/issues/8786")
fun `toRational unknown video size`() {
val input = VideoSize.UNKNOWN
assertEquals(RATIONAL_ONE, input.toRational())
}

@Test
@Ignore("https://github.com/robolectric/robolectric/issues/8786")
fun `toRational with a 16-9 aspect ratio`() {
val input = VideoSize(1920, 1080)
assertEquals(Rational(1920, 1080), input.toRational())
}

@Test
@Ignore("https://github.com/robolectric/robolectric/issues/8786")
fun `toRational with a square aspect ratio`() {
val input = VideoSize(500, 500)
assertEquals(Rational(500, 500), input.toRational())
Expand Down

0 comments on commit 39e6aec

Please sign in to comment.