mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix active layer test when calling Layer#clone().
This commit is contained in:
parent
20a17f2939
commit
cfbd356247
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue