From 7026ea24aaeed9858c57ffa7cce44f37942d1885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 26 May 2011 10:56:15 +0100 Subject: [PATCH] Reverse compare order in cloning tests, as the 2nd argument is always the one that holds the expected values. --- test/tests/Item_Cloning.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/Item_Cloning.js b/test/tests/Item_Cloning.js index e8073be1..ecd43730 100644 --- a/test/tests/Item_Cloning.js +++ b/test/tests/Item_Cloning.js @@ -11,7 +11,7 @@ function cloneAndCompare(item) { return copy.parent.children[copy.name] == copy; }, true); } - compareItems(item, copy, true); + compareItems(copy, item, true); // Remove the cloned item to restore the document: copy.remove(); } @@ -126,7 +126,7 @@ test('Symbol#clone()', function() { path.selected = true; var symbol = new Symbol(path); var copy = symbol.clone(); - compareItems(symbol.definition, copy.definition); + compareItems(copy.definition, symbol.definition); equals(function() { return symbol.project == copy.project; }, true);