Skip to content

Commit

Permalink
Increase tolerance for the color checks in createImageBitmap-drawImag…
Browse files Browse the repository at this point in the history
…e.html.

The difference in WebKit on macOS can be up to 8.
  • Loading branch information
Ms2ger committed Feb 2, 2018
1 parent b9102ea commit 6276bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2dcontext/imagebitmap/createImageBitmap-drawImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>
function testCanvasDisplayingPattern(canvas, width, height)
{
var tolerance = 5; // for creating ImageBitmap from a video, the tolerance needs to be high
var tolerance = 10; // for creating ImageBitmap from a video, the tolerance needs to be high
const check = (x, y, r, g, b, a) =>
_assertPixelApprox(canvas, x,y, r,g,b,a, `${x},${y}`, `${r},${g},${b},${a}`, tolerance);
check(1 * width / 4, 1 * height / 4, 255,0,0,255);
Expand Down

0 comments on commit 6276bba

Please sign in to comment.