mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Add additional test for #name.
This commit is contained in:
parent
d12608c708
commit
441dc3641d
1 changed files with 6 additions and 2 deletions
|
@ -391,6 +391,10 @@ test('Setting name of child back to null', function() {
|
||||||
var path2 = new Path();
|
var path2 = new Path();
|
||||||
path2.name = 'test';
|
path2.name = 'test';
|
||||||
|
|
||||||
|
equals(function() {
|
||||||
|
return paper.document.activeLayer.children['test'] == path2;
|
||||||
|
}, true);
|
||||||
|
|
||||||
path2.name = null;
|
path2.name = null;
|
||||||
|
|
||||||
equals(function() {
|
equals(function() {
|
||||||
|
|
Loading…
Reference in a new issue