mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -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() {
|
equals(function() {
|
||||||
return paper.project.symbols.length == 2;
|
return paper.project.symbols.length == 2;
|
||||||
}, true);
|
}, 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