Add tests for Item#isInserted.

This commit is contained in:
Jonathan Puckey 2013-03-03 16:59:27 +01:00
parent 2c9846bf09
commit 1170c14a9a

View file

@ -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);
});