mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Tests: add Raster#clone() test.
This commit is contained in:
parent
73a2f0f256
commit
888a5cf348
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
});
|
Loading…
Reference in a new issue