rendering shadows and strokes test improve

This commit is contained in:
lavrton
2015-01-27 13:21:02 +07:00
parent b585ba4daf
commit f9a08a6acc
10 changed files with 240 additions and 85 deletions

View File

@@ -110,8 +110,8 @@ function get (element, content) {
return element;
}
function compareLayerAndCanvas(layer, canvas) {
var equal = imagediff.equal(layer.getCanvas()._canvas, canvas);
function compareLayerAndCanvas(layer, canvas, tol) {
var equal = imagediff.equal(layer.getCanvas()._canvas, canvas, tol);
if (!equal) {
var
div = get('div'),