Add cloning test for layer that checks the current active layer.

This commit is contained in:
Jonathan Puckey 2011-05-21 20:35:45 +02:00
parent 14477aac59
commit 667992e9f0

View file

@ -45,6 +45,18 @@ test('Layer#clone()', function() {
cloneAndCompare(paper.project.activeLayer);
});
test('Layer#clone() - check activeLayer', function() {
var project = paper.project,
activeLayer = project.activeLayer,
layer = activeLayer.clone();
equals(function() {
return layer == project.activeLayer;
}, true);
equals(function() {
return activeLayer != project.activeLayer;
}, true);
});
test('Group#clone()', function() {
var path = new Path.Circle([150, 150], 60);
path.style = {