fix: fix parsing rgba error

This commit is contained in:
gloryyin
2022-09-10 14:44:33 +08:00
parent fe69f7c0ad
commit ce32a3240e
2 changed files with 10 additions and 2 deletions

View File

@@ -1229,6 +1229,11 @@ describe('Shape', function () {
// reset shadow
circle.shadowColor(null);
assert.equal(circle.getShadowRGBA(), undefined);
// illegal color
circle.shadowColor('#0000f');
assert.equal(circle.hasShadow(), true);
assert.equal(circle.getShadowRGBA(), undefined);
});
it('scale should also effect shadow offset', function () {