summaryrefslogtreecommitdiffstats
path: root/install/static/test/entity_tests.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-12-04 00:29:05 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-12-06 12:52:47 -0500
commit10f3c0825bfdffa6035e78066001eb3bdc759143 (patch)
treee1a2ddef0846e12275cd661752217e461a204b7c /install/static/test/entity_tests.js
parent37f48c0019c64f20bfc24b021442b643eaf86aab (diff)
downloadfreeipa.git-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.gz
freeipa.git-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.xz
freeipa.git-10f3c0825bfdffa6035e78066001eb3bdc759143.zip
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
Diffstat (limited to 'install/static/test/entity_tests.js')
-rw-r--r--install/static/test/entity_tests.js9
1 files changed, 7 insertions, 2 deletions
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();