better tests

This commit is contained in:
Anton Lavrenov
2020-09-17 13:25:46 -05:00
parent 42562438eb
commit 4ce6800fd9
19 changed files with 174 additions and 173 deletions

View File

@@ -6,7 +6,7 @@ suite('Group', function () {
var layer = new Konva.Layer();
var group = new Konva.Group({
draggable: true,
x: 100,
x: 50,
y: 40,
});
var text = new Konva.Text({
@@ -19,9 +19,9 @@ suite('Group', function () {
var rect = new Konva.Rect({
height: 100,
width: 100,
stroke: '#00B80C',
stroke: 'black',
strokeWidth: 10,
cornerRadius: 1,
// cornerRadius: 1,
});
group.add(text);
group.add(rect);
@@ -31,15 +31,16 @@ suite('Group', function () {
group
.cache({
x: -5,
y: -5,
width: 110,
height: 110,
drawBorder: true,
x: -15,
y: -15,
width: 150,
height: 150,
})
.offsetX(5)
.offsetY(5);
stage.draw();
layer.draw();
cloneAndCompareLayer(layer, 200);
});
});