Fix active layer test when calling Layer#clone().

This commit is contained in:
Jürg Lehni 2013-07-19 18:29:21 -07:00
parent 20a17f2939
commit cfbd356247

View file

@ -76,11 +76,9 @@ test('Layer#clone() - check activeLayer', function() {
var project = paper.project,
activeLayer = project.activeLayer,
layer = activeLayer.clone();
// The active layer should not change when cloning layers.
equals(function() {
return layer == project.activeLayer;
}, true);
equals(function() {
return activeLayer != project.activeLayer;
return activeLayer == project.activeLayer;
}, true);
});