Reverse compare order in cloning tests, as the 2nd argument is always the one that holds the expected values.

This commit is contained in:
Jürg Lehni 2011-05-26 10:56:15 +01:00
parent 4029e6abf7
commit 7026ea24aa

View file

@ -11,7 +11,7 @@ function cloneAndCompare(item) {
return copy.parent.children[copy.name] == copy; return copy.parent.children[copy.name] == copy;
}, true); }, true);
} }
compareItems(item, copy, true); compareItems(copy, item, true);
// Remove the cloned item to restore the document: // Remove the cloned item to restore the document:
copy.remove(); copy.remove();
} }
@ -126,7 +126,7 @@ test('Symbol#clone()', function() {
path.selected = true; path.selected = true;
var symbol = new Symbol(path); var symbol = new Symbol(path);
var copy = symbol.clone(); var copy = symbol.clone();
compareItems(symbol.definition, copy.definition); compareItems(copy.definition, symbol.definition);
equals(function() { equals(function() {
return symbol.project == copy.project; return symbol.project == copy.project;
}, true); }, true);