Index: content/test/data/media/getusermedia.html |
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html |
index e4723636005fadec7b4e39b0989a7c86778324b1..da6b2cc5958912413db001f4ca43ebe612f173fa 100644 |
--- a/content/test/data/media/getusermedia.html |
+++ b/content/test/data/media/getusermedia.html |
@@ -483,12 +483,12 @@ |
// Walk horizontally counting light green pixels. |
for (var x = 0; x < aperture; ++x) { |
- if (pixels.data[4 * x + 1] != COLOR_BACKGROUND_GREEN) |
+ if (!isAlmostBackgroundGreen(pixels.data[4 * x + 1])) |
lightGreenPixelsX++; |
} |
// Walk vertically counting light green pixels. |
for (var y = 0; y < aperture; ++y) { |
- if (pixels.data[4 * y * aperture + 1] != COLOR_BACKGROUND_GREEN) |
+ if (!isAlmostBackgroundGreen(pixels.data[4 * y * aperture + 1])) |
lightGreenPixelsY++; |
} |
if (lightGreenPixelsX > maxLightGreenPixelsX) |