mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing tests for Item#type.
This commit is contained in:
parent
bedb4001a7
commit
2c9846bf09
1 changed files with 10 additions and 1 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue