From 79389bed772298ad092cbd3156b987a433dc7500 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 28 Apr 2011 19:17:58 -0500 Subject: Moved entity contents outside navigation. Previously the entities and navigation are entangled inside a common DOM structure which restricts code reuse. Now they have been moved into separate structures. --- install/ui/test/navigation_tests.js | 63 ++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 21 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 e88c99d9..0f8f1be4 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -43,8 +43,8 @@ test("Testing IPA.navigation.create().", function() { metadata:IPA.metadata.objects.user}); that.setup = function(container){ user_mock_called = true; - same(container[0].id,'user','user id'); - same(container[0].nodeName,'DIV','user div'); + same(container.attr('name'), 'user', 'user container name'); + same(container[0].nodeName, 'DIV', 'user container element'); }; return that; }; @@ -53,8 +53,8 @@ test("Testing IPA.navigation.create().", function() { metadata:IPA.metadata.objects.group}); that.setup = function(container){ group_mock_called = true; - same(container[0].id,'group','group id'); - same(container[0].nodeName,'DIV','group Div'); + same(container.attr('name'), 'group','user container name'); + same(container[0].nodeName, 'DIV', 'user container element'); }; return that; }; @@ -62,12 +62,14 @@ test("Testing IPA.navigation.create().", function() { IPA.start_entities(); IPA.metadata = {}; - var container = $('