Bug 1267884 - Update TestColorProcessor to reflect update palette library colour extraction r?sebastian draft
authorAndrzej Hunt <ahunt@mozilla.com>
Mon, 03 Oct 2016 07:49:41 -0700
changeset 420145 a5e8609f271a5c5938ef1e7b48b456ac797899a7
parent 419941 75fe7331044e4afbc3393ee08671c375325a75f9
child 420760 d69ec105bcc7d7b704f9ff7adeb7855fbdb1c42a
push id31111
push userahunt@mozilla.com
push dateMon, 03 Oct 2016 14:50:14 +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(0xFFFF0000, response.getColor());
     }
 
     private Bitmap createRedBitmapMock() {
         final Bitmap bitmap = mock(Bitmap.class);
 
         doReturn(1).when(bitmap).getWidth();
         doReturn(1).when(bitmap).getHeight();