Bug 848491 - Fuzz the redGradientBlueSolid analysis test a little bit to account for rasterising differences on Skia r=MattN
authorGeorge Wright <gw@gwright.org.uk>
Thu, 27 Jun 2013 16:10:08 -0400
changeset 137346 8bde774bdb36d5e8aff751f3281d9d7c53663602
parent 137345 7eb111a378e49dfae3e6bc175e08abd70123ea33
child 137347 2315e78bd4e26487196856f282b5d5254e70206d
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersMattN
bugs848491
milestone25.0a1
Bug 848491 - Fuzz the redGradientBlueSolid analysis test a little bit to account for rasterising differences on Skia r=MattN
toolkit/components/places/tests/browser/browser_colorAnalyzer.js
--- a/toolkit/components/places/tests/browser/browser_colorAnalyzer.js
+++ b/toolkit/components/places/tests/browser/browser_colorAnalyzer.js
@@ -92,17 +92,17 @@ tests.push(function test_redGradientBlue
     gradient.addColorStop(0, "#FF0000");
     gradient.addColorStop(1, "#FF0808");
 
     ctx.fillStyle = gradient;
     ctx.fillRect(0, 0, 16, 16);
     ctx.fillStyle = "blue";
     ctx.fillRect(9, 0, 7, 16);
   }, function(actual, message) {
-    ok(actual > 0xFF0000 && actual < 0xFF0808, message);
+    ok(actual >= 0xFF0000 && actual <= 0xFF0808, message);
   }, "redGradientBlueSolid analysis returns redish");
 });
 
 // try a transparent image, should fail
 tests.push(function test_transparent() {
   canvasTest(16, 16, function(ctx) {
     //do nothing!
   }, null, "transparent analysis fails");