mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Reverse compare order in cloning tests, as the 2nd argument is always the one that holds the expected values.
This commit is contained in:
parent
4029e6abf7
commit
7026ea24aa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue