Tests: compareItems: compare item#matrix if present.

This commit is contained in:
Jonathan Puckey 2011-05-21 12:48:43 +02:00
parent c3092db208
commit d03dd05195

View file

@ -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(),