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