update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov
2016-07-05 09:59:41 +07:00
parent 724dcceace
commit aef5e79981
5 changed files with 51 additions and 15 deletions

View File

@@ -76,7 +76,29 @@ suite('Node', function() {
circle.setAttr('foobar', 12);
assert.equal(circle.getAttr('foobar'), 12);
});
// ======================================================
test('unset attr', function() {
var stage = addStage();
var layer = new Konva.Layer();
var circle = new Konva.Circle({
x: stage.getWidth() / 2,
y: stage.getHeight() / 2,
radius: 70,
fill: 'green',
stroke: 'black',
strokeWidth: 4
});
stage.add(layer.add(circle));
circle.setAttr('x', undefined);
assert.equal(circle.getX(), 0);
circle.y(null);
assert.equal(circle.y(), 0);
});
// ======================================================