Fix for regression in unit test, introduced by previous patch.
-- Petr Vobornik
From f1a1a99763f38a10304c374da88857c85c9e7748 Mon Sep 17 00:00:00 2001 From: Petr Vobornik <pvobo...@redhat.com> Date: Thu, 20 Oct 2011 16:37:48 +0200 Subject: [PATCH] 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 files changed, 9 insertions(+), 3 deletions(-) diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 90e708ccb3daeb63031c76884bd69b608fbf5694..6df1926c3efac17c0eada193e00a6dcebf0d7093 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; -- 1.7.6.4
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel