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,
|
var project = paper.project,
|
||||||
activeLayer = project.activeLayer,
|
activeLayer = project.activeLayer,
|
||||||
layer = activeLayer.clone();
|
layer = activeLayer.clone();
|
||||||
|
// The active layer should not change when cloning layers.
|
||||||
equals(function() {
|
equals(function() {
|
||||||
return layer == project.activeLayer;
|
return activeLayer == project.activeLayer;
|
||||||
}, true);
|
|
||||||
equals(function() {
|
|
||||||
return activeLayer != project.activeLayer;
|
|
||||||
}, true);
|
}, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue