From 40f9f52a76907960edc293a84c1af281f674ecad Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 20 Oct 2011 16:37:48 +0200 Subject: Fixing infinite loop in UI navigation unit test. https://fedorahosted.org/freeipa/ticket/1531 It's a fix for regression introduced by previous patch. --- install/ui/test/navigation_tests.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 90e708ccb..6df1926c3 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -45,9 +45,15 @@ test("Testing IPA.navigation.create().", function() { IPA.entities = $.ordered_map(); IPA.entity_factories.user = function() { - var that = IPA.entity({name: 'user', - metadata:IPA.metadata.objects.user}); - that.add_facet(IPA.search_facet({'entity':that})); + var that = IPA.entity({ + name: 'user', + metadata:IPA.metadata.objects.user, + facets: [ + { + type: 'search' + } + ] + }); that.display = function(container){ user_mock_called = true; -- cgit