From 56bec4187743ba750a6f99b956d5d31999e9cce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 19 Mar 2013 18:52:10 -0700 Subject: [PATCH] Fix issues with JSON symbol test code. Export was working, but testing code was faulty. --- test/lib/helpers.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 08ce0f15..20bdeeae 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -322,7 +322,7 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) { // PlacedSymbol specific if (item instanceof PlacedSymbol) { if (dontShareProject) { - compareItems(item.symbol.definition, item.symbol2.definition, + compareItems(item.symbol.definition, item2.symbol.definition, cloned, checkIdentity, dontShareProject, 'Compare Symbol#definition'); } else { @@ -380,7 +380,8 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) { return item.children.length == item2.children.length; }, true); for (var i = 0, l = item.children.length; i < l; i++) { - compareItems(item.children[i], item2.children[i], cloned, checkIdentity); + compareItems(item.children[i], item2.children[i], cloned, + checkIdentity, dontShareProject); } } } @@ -393,7 +394,8 @@ function compareProjects(project, project2) { for (var i = 0, l = project.symbols.length; i < l; i++) { var definition1 = project.symbols[i].definition; var definition2 = project2.symbols[i].definition; - compareItems(definition1, definition2, false, false, true, 'Compare Symbol#definition'); + compareItems(definition1, definition2, false, false, true, + 'Compare Symbol#definition'); } // Compare Project#layers: