Fixing infinite loop in UI navigation unit test.

https://fedorahosted.org/freeipa/ticket/1531

It's a fix for regression introduced by previous patch.
This commit is contained in:
Petr Vobornik 2011-10-20 16:37:48 +02:00 committed by Endi S. Dewata
parent 24cedc4154
commit 40f9f52a76

View File

@ -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;