Tests: add Raster#clone() test.

This commit is contained in:
Jonathan Puckey 2011-05-21 12:50:36 +02:00
parent 73a2f0f256
commit 888a5cf348

View file

@ -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);
});