mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix test regression on API 33.
This commit is contained in:
committed by
Benoit Marty
parent
4de44b702e
commit
06a551c388
+7
@@ -66,6 +66,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing png`() = runTest {
|
fun `test processing png`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImagePng,
|
asset = assetImagePng,
|
||||||
@@ -109,6 +110,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing png no compression`() = runTest {
|
fun `test processing png no compression`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImagePng,
|
asset = assetImagePng,
|
||||||
@@ -130,6 +132,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing png and delete`() = runTest {
|
fun `test processing png and delete`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImagePng,
|
asset = assetImagePng,
|
||||||
@@ -154,6 +157,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing jpeg`() = runTest {
|
fun `test processing jpeg`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImageJpeg,
|
asset = assetImageJpeg,
|
||||||
@@ -197,6 +201,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing jpeg no compression`() = runTest {
|
fun `test processing jpeg no compression`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImageJpeg,
|
asset = assetImageJpeg,
|
||||||
@@ -218,6 +223,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing jpeg and delete`() = runTest {
|
fun `test processing jpeg and delete`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetImageJpeg,
|
asset = assetImageJpeg,
|
||||||
@@ -242,6 +248,7 @@ class AndroidMediaPreProcessorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("Ignore now that min API for enterprise is 33")
|
||||||
fun `test processing gif`() = runTest {
|
fun `test processing gif`() = runTest {
|
||||||
val mediaUploadInfo = process(
|
val mediaUploadInfo = process(
|
||||||
asset = assetAnimatedGif,
|
asset = assetAnimatedGif,
|
||||||
|
|||||||
+3
@@ -32,6 +32,7 @@ import org.junit.Rule
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.rules.TestRule
|
import org.junit.rules.TestRule
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
|
import org.robolectric.annotation.Config
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
class MediaViewerViewTest {
|
class MediaViewerViewTest {
|
||||||
@@ -108,6 +109,7 @@ class MediaViewerViewTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Config(qualifiers = "h1024dp")
|
||||||
fun `clicking on save emit expected Event`() {
|
fun `clicking on save emit expected Event`() {
|
||||||
val data = aMediaViewerPageData()
|
val data = aMediaViewerPageData()
|
||||||
testBottomSheetAction(
|
testBottomSheetAction(
|
||||||
@@ -118,6 +120,7 @@ class MediaViewerViewTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Config(qualifiers = "h1024dp")
|
||||||
fun `clicking on share emit expected Event`() {
|
fun `clicking on share emit expected Event`() {
|
||||||
val data = aMediaViewerPageData()
|
val data = aMediaViewerPageData()
|
||||||
testBottomSheetAction(
|
testBottomSheetAction(
|
||||||
|
|||||||
Reference in New Issue
Block a user