mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing tests for renaming a removed item and naming a top level group.
This commit is contained in:
parent
506a146cc0
commit
55a795c285
1 changed files with 11 additions and 0 deletions
|
@ -464,6 +464,17 @@ test('Changing item#position.x', function() {
|
|||
equals(path.position.toString(), '{ x: 55, y: 50 }', 'path.position.x += 5');
|
||||
});
|
||||
|
||||
test('Naming a removed item', function() {
|
||||
var path = new Path();
|
||||
path.remove();
|
||||
path.name = 'test';
|
||||
});
|
||||
|
||||
test('Naming a layer', function() {
|
||||
var layer = new Layer();
|
||||
layer.name = 'test';
|
||||
});
|
||||
|
||||
test('Cloning a linked size', function() {
|
||||
var path = new Path([40, 75], [140, 75]);
|
||||
var error = null;
|
||||
|
|
Loading…
Reference in a new issue