From 888a5cf3485d41e813772c92e6dad60729d8a4f9 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 21 May 2011 12:50:36 +0200 Subject: [PATCH] Tests: add Raster#clone() test. --- test/tests/Item_Cloning.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/tests/Item_Cloning.js b/test/tests/Item_Cloning.js index d97e1832..2a8c375c 100644 --- a/test/tests/Item_Cloning.js +++ b/test/tests/Item_Cloning.js @@ -103,4 +103,15 @@ test('Symbol#clone()', function() { equals(function() { return paper.project.symbols.length == 2; }, true); +}); + +test('Raster#clone()', function() { + var path = new Path.Circle([150, 150], 60); + path.style = { + fillColor: new RGBColor(0, 0, 1), + strokeColor: new RGBColor(0, 0, 1) + }; + var raster = path.rasterize(); + raster.rotate(20).translate(100); + cloneAndCompare(raster); }); \ No newline at end of file