Bug 1267884 - Update TestColorProcessor to reflect update palette library colour extraction r?sebastian draft
authorAndrzej Hunt <ahunt@mozilla.com>
Tue, 04 Oct 2016 09:51:18 -0700
changeset 420786 a7a513717e9ac3663e6f9af66c8c0b9c4b9b2034
parent 420785 847cdf4783df5aab20049db43b6074b76c6d224b
child 422215 d605e7880cd4d4b99530cd3d6353df37821fcfba
push id31291
push userahunt@mozilla.com
push dateTue, 04 Oct 2016 16:59:24 +0000
reviewerssebastian
bugs1267884
milestone52.0a1
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
mobile/android/tests/background/junit4/src/org/mozilla/gecko/icons/processing/TestColorProcessor.java
--- 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();