From cfbd356247e8199001b011044d4ba7504f88025d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 19 Jul 2013 18:29:21 -0700 Subject: [PATCH] Fix active layer test when calling Layer#clone(). --- test/tests/Item_Cloning.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/tests/Item_Cloning.js b/test/tests/Item_Cloning.js index d9244b09..c1e0c965 100644 --- a/test/tests/Item_Cloning.js +++ b/test/tests/Item_Cloning.js @@ -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); });