diff options
author | Adam Young <ayoung@redhat.com> | 2011-05-23 10:39:09 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-23 13:31:23 -0400 |
commit | 03303390031ae88c9df3a0e14d85550884bb1740 (patch) | |
tree | 5f4fa206c61b909657d760de902d5f7bb136c25f /install/ui/test/navigation_tests.js | |
parent | 0238cb845a724969990be3c8a45ef572296b5de1 (diff) | |
download | freeipa-03303390031ae88c9df3a0e14d85550884bb1740.tar.gz freeipa-03303390031ae88c9df3a0e14d85550884bb1740.tar.xz freeipa-03303390031ae88c9df3a0e14d85550884bb1740.zip |
create entities on demand.
fixed changes from code review
Fixed unit tests for entity on demand changes.
Diffstat (limited to 'install/ui/test/navigation_tests.js')
-rw-r--r-- | install/ui/test/navigation_tests.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 0f8f1be4a..d9bcc8eb6 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -20,6 +20,7 @@ module('navigation', { + setup: function() { IPA.ajax_options.async = false; IPA.init( @@ -32,11 +33,14 @@ module('navigation', { } ); } + }); test("Testing IPA.navigation.create().", function() { var entity; + var user_mock_called = false; + var group_mock_called = false; IPA.entity_factories.user = function() { var that = IPA.entity({name: 'user', @@ -59,13 +63,8 @@ test("Testing IPA.navigation.create().", function() { return that; }; - IPA.start_entities(); - - IPA.metadata = {}; var navigation_container = $('<div id="navigation"/>').appendTo(document.body); var entity_container = $('<div id="content"/>').appendTo(document.body); - var user_mock_called = false; - var group_mock_called = false; var navigation = IPA.navigation({ container: navigation_container, |