mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add tests for Item#isInserted.
This commit is contained in:
parent
2c9846bf09
commit
1170c14a9a
1 changed files with 12 additions and 0 deletions
|
@ -523,3 +523,15 @@ test('Item#type', function() {
|
|||
equals(new PlacedSymbol().type, 'placedsymbol');
|
||||
equals(new PointText().type, 'pointtext');
|
||||
});
|
||||
|
||||
test('Item#isInserted', function() {
|
||||
var item = new Path();
|
||||
equals(item.isInserted(), true);
|
||||
item.remove();
|
||||
equals(item.isInserted(), false);
|
||||
|
||||
var group = new Group(item);
|
||||
equals(item.isInserted(), true);
|
||||
group.remove();
|
||||
equals(item.isInserted(), false);
|
||||
});
|
Loading…
Reference in a new issue