mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Tests: compareItems: compare item#matrix if present.
This commit is contained in:
parent
c3092db208
commit
d03dd05195
1 changed files with 8 additions and 0 deletions
|
@ -135,6 +135,14 @@ function compareItems(item, item2) {
|
|||
equals(item._matrix.toString(), item2._matrix.toString(),
|
||||
'item._matrix.toString() == item2._matrix.toString()');
|
||||
}
|
||||
|
||||
if (item.matrix) {
|
||||
equals(function() {
|
||||
return item.matrix != item2.matrix;
|
||||
}, true);
|
||||
equals(item.matrix.toString(), item2.matrix.toString(),
|
||||
'item.matrix.toString() == item2.matrix.toString()');
|
||||
}
|
||||
|
||||
if (item2.segments) {
|
||||
equals(item.segments.toString(), item2.segments.toString(),
|
||||
|
|
Loading…
Reference in a new issue