From 10f3c0825bfdffa6035e78066001eb3bdc759143 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Sat, 4 Dec 2010 00:29:05 -0500 Subject: entity i18n Updated the user,group,host, hostgroup, netgroup, service, and all policy entities to use the newer framework functions, in order to replaced the old array style definitions which did not support i18n. update a few of the newer framerwork functions to get the lables from the meta data. Fixed the unit tests which were expecting a details facet for users, no longer automatically created --- install/static/test/entity_tests.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'install/static/test/entity_tests.js') diff --git a/install/static/test/entity_tests.js b/install/static/test/entity_tests.js index 504775eb..45834ac3 100644 --- a/install/static/test/entity_tests.js +++ b/install/static/test/entity_tests.js @@ -109,8 +109,12 @@ test('Testing ipa_facet_setup_views().', function() { var views = ul.children(); + /*5 Views: + one for each of 3 associations + one for search + a blank one for the action controls*/ equals( - views.length, 6, + views.length, 5, 'Checking number of views' ); @@ -142,7 +146,8 @@ test('Testing ipa_facet_setup_views().', function() { var search_facets = $('li.search-facet', action_panel); equals(search_facets.length,1,'one search facet in action panel'); var entity_facets = $('li.entity-facet', action_panel); - equals(entity_facets.length,4,'4 entity facets in action panel'); + /*No longer automatically adding details, so ony the assoc. facets */ + equals(entity_facets.length,3,'3 entity facets in action panel'); for ( var entity_facet = entity_facets.first(); -- cgit