Fix comparing of PlacedSymbols in compareItems test helper.

This commit is contained in:
Jonathan Puckey 2013-03-17 15:39:00 +01:00
parent a2e3759fb8
commit 4719c05403

View file

@ -311,9 +311,15 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) {
// PlacedSymbol specific
if (item instanceof PlacedSymbol) {
equals(function() {
return item.symbol == item2.symbol;
}, true);
if (dontShareProject) {
compareItems(item.symbol.definition, item.symbol2.definition,
cloned, checkIdentity, dontShareProject,
'Compare Symbol#definition');
} else {
equals(function() {
return item.symbol == item2.symbol;
}, true);
}
}
// Raster specific