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.entities = $.ordered_map();
IPA.entity_factories.user = function() { IPA.entity_factories.user = function() {
var that = IPA.entity({name: 'user', var that = IPA.entity({
metadata:IPA.metadata.objects.user}); name: 'user',
that.add_facet(IPA.search_facet({'entity':that})); metadata:IPA.metadata.objects.user,
facets: [
{
type: 'search'
}
]
});
that.display = function(container){ that.display = function(container){
user_mock_called = true; user_mock_called = true;