mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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;
|
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);
|
||||||
|
|
Loading…
Reference in a new issue