Bug 1267884 - Update TestColorProcessor to reflect update palette library colour extraction r?sebastian
It looks like the update (23.4) version of palette returns the actual dominant colour
for a red mock (FF0000). Previously it returned a more muted red (F80000).
MozReview-Commit-ID: 5VpRavyooHY
--- a/mobile/android/tests/background/junit4/src/org/mozilla/gecko/icons/processing/TestColorProcessor.java
+++ b/mobile/android/tests/background/junit4/src/org/mozilla/gecko/icons/processing/TestColorProcessor.java
@@ -28,17 +28,17 @@ public class TestColorProcessor {
Assert.assertFalse(response.hasColor());
Assert.assertEquals(0, response.getColor());
final Processor processor = new ColorProcessor();
processor.process(null, response);
Assert.assertTrue(response.hasColor());
- Assert.assertEquals(0xFFF80000, response.getColor());
+ Assert.assertEquals(Color.RED, response.getColor());
}
private Bitmap createRedBitmapMock() {
final Bitmap bitmap = mock(Bitmap.class);
doReturn(1).when(bitmap).getWidth();
doReturn(1).when(bitmap).getHeight();