Add failing tests for Item#type.

This commit is contained in:
Jonathan Puckey 2013-03-03 14:40:37 +01:00
parent bedb4001a7
commit 2c9846bf09

View file

@ -513,4 +513,13 @@ test('Cloning a linked size', function() {
if (error)
description += ': ' + error;
equals(error == null, true, description);
});
});
test('Item#type', function() {
equals(new Group().type, 'group');
equals(new Path().type, 'path');
equals(new CompoundPath().type, 'compoundpath');
equals(new Raster().type, 'raster');
equals(new PlacedSymbol().type, 'placedsymbol');
equals(new PointText().type, 'pointtext');
});