Autofix indentation issues (eslint --fix)
This commit is contained in:
@@ -389,25 +389,25 @@
|
||||
}
|
||||
|
||||
resemble(referenceImage)
|
||||
.compareTo(canvas.getContext('2d').getImageData(
|
||||
0, 0, canvas.width, canvas.height))
|
||||
.onComplete(function(data) {
|
||||
if (!data.isSameDimensions) {
|
||||
expect().fail(
|
||||
'The dimensions of the reference image and ' +
|
||||
.compareTo(canvas.getContext('2d').getImageData(
|
||||
0, 0, canvas.width, canvas.height))
|
||||
.onComplete(function(data) {
|
||||
if (!data.isSameDimensions) {
|
||||
expect().fail(
|
||||
'The dimensions of the reference image and ' +
|
||||
'the test canvas are not the same.');
|
||||
}
|
||||
|
||||
if (data.misMatchPercentage > tolerance) {
|
||||
if (showDiff) {
|
||||
var diffImage = new Image();
|
||||
diffImage.src = data.getImageDataUrl();
|
||||
document.body.appendChild(diffImage);
|
||||
}
|
||||
expect(data.misMatchPercentage).to.be.below(tolerance);
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
if (data.misMatchPercentage > tolerance) {
|
||||
if (showDiff) {
|
||||
var diffImage = new Image();
|
||||
diffImage.src = data.getImageDataUrl();
|
||||
document.body.appendChild(diffImage);
|
||||
}
|
||||
expect(data.misMatchPercentage).to.be.below(tolerance);
|
||||
}
|
||||
done();
|
||||
});
|
||||
}
|
||||
global.resembleCanvas = resembleCanvas;
|
||||
|
||||
@@ -457,7 +457,7 @@
|
||||
expectResembleWebGL(map, referenceImage, tolerance, done);
|
||||
} else {
|
||||
expect().fail(
|
||||
'resemble only works with the canvas and WebGL renderer.');
|
||||
'resemble only works with the canvas and WebGL renderer.');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user