mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-23 16:19:54 +01:00
Add transparent PNG.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 219 B |
@@ -3,36 +3,35 @@ package org.briarproject.briar.android.attachment;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||||
|
|
||||||
import static android.os.Build.VERSION.SDK_INT;
|
import static android.os.Build.VERSION.SDK_INT;
|
||||||
import static java.util.logging.Logger.getLogger;
|
|
||||||
import static org.junit.Assume.assumeTrue;
|
import static org.junit.Assume.assumeTrue;
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public class AttachmentCreationTaskTest
|
public class AttachmentCreationTaskTest
|
||||||
extends AbstractAttachmentCreationTaskTest {
|
extends AbstractAttachmentCreationTaskTest {
|
||||||
|
|
||||||
private static Logger LOG =
|
|
||||||
getLogger(AttachmentCreationTaskTest.class.getName());
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompress100x100Png() throws Exception {
|
public void testCompressSmallPng() throws Exception {
|
||||||
testCompress("red-100x100.png", "image/png");
|
testCompress("red-100x100.png", "image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompress500x500Png() throws Exception {
|
public void testCompressMediumPng() throws Exception {
|
||||||
testCompress("blue-500x500.png", "image/png");
|
testCompress("blue-500x500.png", "image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompress1000x2000Png() throws Exception {
|
public void testCompressLargePng() throws Exception {
|
||||||
testCompress("green-1000x2000.png", "image/png");
|
testCompress("green-1000x2000.png", "image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCompressTransparentPng() throws Exception {
|
||||||
|
testCompress("transparent-100x100.png", "image/png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompressVeryHighJpg() throws Exception {
|
public void testCompressVeryHighJpg() throws Exception {
|
||||||
testCompress("error_high.jpg", "image/jpeg");
|
testCompress("error_high.jpg", "image/jpeg");
|
||||||
|
|||||||
Reference in New Issue
Block a user