allow cloning id

This commit is contained in:
Anton Lavrenov
2020-02-17 19:51:18 -05:00
parent c3d01c3f0c
commit 6fbe48e583
5 changed files with 14 additions and 31 deletions

View File

@@ -560,7 +560,7 @@ suite('Node', function() {
assert.equal(rect.getShadowColor(), 'black');
assert.equal(clone.getShadowColor(), 'black');
assert.equal(clone.id() == '', true, 'do not clone id');
assert.equal(clone.id() === 'myRect', true, 'clone id');
clone.setShadowColor('green');