fixed #539 and also added size() overloader

This commit is contained in:
Eric Rowell
2014-03-20 20:39:40 -07:00
parent a9b63fc8ed
commit e6b44bb75d
5 changed files with 33 additions and 21 deletions

View File

@@ -2759,6 +2759,11 @@ suite('Node', function() {
circle.position({x: 6, y: 8});
assert.equal(circle.position().x, 6);
assert.equal(circle.position().y, 8);
// because the height was set to 11, the width
// is also 11 because the node is a circle
assert.equal(circle.size().width, 11);
assert.equal(circle.size().height, 11);
});
test('cache shape', function(){

View File

@@ -63,7 +63,7 @@ suite('Tween', function() {
});
// ======================================================
test('tween node 2', function() {
test('destroy tween while tweening', function() {
var stage = addStage();
var layer = new Kinetic.Layer();