summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-10-20 16:37:48 +0200
committerEndi S. Dewata <edewata@redhat.com>2011-10-20 13:13:58 -0200
commit40f9f52a76907960edc293a84c1af281f674ecad (patch)
tree9a73b22f8cdb1cbe96499e70423e742706e85d65
parent24cedc41541d140e3a7571499e1944b5beae56e4 (diff)
downloadfreeipa-40f9f52a76907960edc293a84c1af281f674ecad.zip
freeipa-40f9f52a76907960edc293a84c1af281f674ecad.tar.gz
freeipa-40f9f52a76907960edc293a84c1af281f674ecad.tar.xz
Fixing infinite loop in UI navigation unit test.
https://fedorahosted.org/freeipa/ticket/1531 It's a fix for regression introduced by previous patch.
-rw-r--r--install/ui/test/navigation_tests.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js
index 90e708c..6df1926 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;