From 238da3dffd99f3ea91318eb2dd0fe77860aff345 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 20 Apr 2011 19:11:10 -0500 Subject: Refactored navigation. The singular object IPA.nav has been converted into an IPA.navigation class. The admin and self-service navigation tabs have been converted into subclasses of IPA.navigation and will be instantiated according to user authorization. --- install/ui/test/navigation_tests.js | 136 ++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 69 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 d87edc64..d8cf6d46 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -34,13 +34,7 @@ module('navigation', { } }); -test("Testing IPA.nav.create().", function() { - - var mock_tabs_lists = [ - { name:'identity', label:'IDENTITY', children: [ - {name:'user', entity:'user'}, - {name:'group', entity:'group'} - ]}]; +test("Testing IPA.navigation.create().", function() { var entity; @@ -68,54 +62,66 @@ test("Testing IPA.nav.create().", function() { IPA.start_entities(); IPA.metadata = {}; - var navigation = $('