Merge pull request #781 from guycook/master

Shape.hasShadow cache invalidation fix
This commit is contained in:
Anton Lavrenov
2014-03-09 10:09:06 +08:00

View File

@@ -131,6 +131,10 @@ suite('Shape', function() {
shape.setShadowOpacity(0.5);
assert.equal(shape.hasShadow(), true, 'shape should have a shadow because opacity is nonzero');
shape.setShadowEnabled(false);
assert.equal(shape.hasShadow(), false, 'shape should not have a shadow because it is not enabled');
});
// ======================================================