From c3e065879056d85f0a769368c82b128a58c148e1 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 26 Jan 2011 13:46:49 -0500 Subject: declarative for aci A couple of the ACI definitions were incorrect, and the end result was that fields were not getting initialized. USing the declarative approach cleaned up the cause. Also fixed a few broken unit tests --- install/ui/test/navigation_tests.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'install/ui/test/navigation_tests.js') diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 916259b41..9db0bb1cc 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -31,7 +31,7 @@ test("Testing nav_create().", function() { var entity; - IPA.register_entity( function() { + IPA.entity_factories.user = function() { var that = IPA.entity({name: 'user'}); that.setup = function(container){ user_mock_called = true; @@ -39,10 +39,8 @@ test("Testing nav_create().", function() { same(container[0].nodeName,'DIV','user div'); } return that; - }); - - IPA.register_entity( function(){ - + }; + IPA.entity_factories.group = function(){ var that = IPA.entity({name: 'group'}); that.setup = function(container){ group_mock_called = true; @@ -50,7 +48,7 @@ test("Testing nav_create().", function() { same(container[0].nodeName,'DIV','group Div'); }; return that; - }); + }; IPA.start_entities(); -- cgit