mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 21:34:50 +08:00
more info in tests
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user