more info in tests

This commit is contained in:
Anton Lavrenov
2019-01-19 10:26:21 -05:00
parent cab03b5a88
commit 3002891f5e
4 changed files with 29 additions and 31 deletions

View File

@@ -144,6 +144,10 @@ function compareCanvases(canvas1, canvas2, tol) {
b.appendChild(canvas2);
c.appendChild(diffCanvas);
var base64 = diffCanvas.getContext('2d').toDataURL();
console.error('Diff image:');
console.error(base64);
div.appendChild(b);
div.appendChild(c);
konvaContainer.appendChild(div);

View File

@@ -772,13 +772,11 @@ suite('Text', function() {
ctx.fillText(text.text(), text.x(), text.y() + text.fontSize() / 2);
// TODO: why this does't work in CI
// TODO: why this doesn't work in CI
// TODO: remove all isPhantomJS
if (!window.isPhantomJS) {
compareLayerAndCanvas(layer, canvas, 250);
}
// var data = layer.getContext().getImageData(25, 41, 1, 1).data;
// delete Konva.pixelRatio;
});