From ace98d689fb0ac5e8eb7579ea983ebcdfe725de6 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 3 Mar 2013 20:14:13 +0100 Subject: [PATCH] Fix Item#type test. --- test/tests/Item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests/Item.js b/test/tests/Item.js index 1481d641..c13a315c 100644 --- a/test/tests/Item.js +++ b/test/tests/Item.js @@ -539,7 +539,9 @@ test('Item#type', function() { equals(new Group().type, 'group'); equals(new Path().type, 'path'); equals(new CompoundPath().type, 'compoundpath'); - equals(new Raster().type, 'raster'); + + var canvas = document.createElement('canvas'); + equals(new Raster(canvas).type, 'raster'); equals(new PlacedSymbol().type, 'placedsymbol'); equals(new PointText().type, 'pointtext'); });