From 2c9846bf0991f94c3da81eb12a4ea69d86281be6 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 3 Mar 2013 14:40:37 +0100 Subject: [PATCH] Add failing tests for Item#type. --- test/tests/Item.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/tests/Item.js b/test/tests/Item.js index 0f6dc734..109ab3a5 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -513,4 +513,13 @@ test('Cloning a linked size', function() { if (error) description += ': ' + error; equals(error == null, true, description); -}); \ No newline at end of file +}); + +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'); +});