From 4719c05403c85993b76d7e5bde9a1a2faca5f350 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 17 Mar 2013 15:39:00 +0100 Subject: [PATCH] Fix comparing of PlacedSymbols in compareItems test helper. --- test/lib/helpers.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 572e0ab4..24a4db75 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -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