summaryrefslogtreecommitdiffstats
path: root/install/ui/test
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-07 16:14:58 -0500
committerEndi Sukma Dewata <edewata@people01.fedoraproject.org>2011-04-11 16:03:30 +0000
commitf0f83a862eee908c308c25561a18f8b1e218c081 (patch)
tree3060f7656e414b1e41e75fe442726f8b36cb825d /install/ui/test
parent960e730f3eebfa4609461bd2cb6506bc7f80741b (diff)
downloadfreeipa-f0f83a862eee908c308c25561a18f8b1e218c081.tar.gz
freeipa-f0f83a862eee908c308c25561a18f8b1e218c081.tar.xz
freeipa-f0f83a862eee908c308c25561a18f8b1e218c081.zip
Refactored action panel and client area.
To improve code readability and extensibility the containers for action panel and client area are now created in IPA.entity.setup(). The 'client area' has been renamed into 'content'. The IPA.facet.create() has been renamed to IPA.facet.create_content().
Diffstat (limited to 'install/ui/test')
-rw-r--r--install/ui/test/details_tests.js8
-rw-r--r--install/ui/test/entity_tests.js8
2 files changed, 14 insertions, 2 deletions
diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js
index d3c18d435..76a752400 100644
--- a/install/ui/test/details_tests.js
+++ b/install/ui/test/details_tests.js
@@ -200,7 +200,13 @@ test("Testing details lifecycle: create, setup, load.", function(){
var facet = entity.get_facet('details');
facet.init();
- facet.create(container);
+
+ var content = $('<div/>', {
+ 'class': 'content'
+ }).appendTo(container);
+
+ facet.create_content(content);
+
facet.setup(container);
facet.load(result);
diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js
index 86e44cd67..0adc091fd 100644
--- a/install/ui/test/entity_tests.js
+++ b/install/ui/test/entity_tests.js
@@ -74,7 +74,13 @@ test('Testing IPA.entity_set_search_definition().', function() {
var facet = entity.get_facet('search');
facet.init();
- facet.create(entities_container);
+
+ var content = $('<div/>', {
+ 'class': 'content'
+ }).appendTo(entities_container);
+
+ facet.create_content(content);
+
facet.setup(entities_container);