diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2011-11-09 18:48:04 -0600 |
|---|---|---|
| committer | Adam Young <ayoung@redhat.com> | 2011-11-14 16:47:10 -0500 |
| commit | 20ad8fe1ba9b4a0f8ca9e365ac782895f6698c71 (patch) | |
| tree | 1b55c708fbb6cdee93f9e194586a8dbe9633ff3d /install/ui/test | |
| parent | d6d24be28953f2ec3cf1f2400619fd61459cf45f (diff) | |
| download | freeipa-20ad8fe1ba9b4a0f8ca9e365ac782895f6698c71.tar.gz freeipa-20ad8fe1ba9b4a0f8ca9e365ac782895f6698c71.tar.xz freeipa-20ad8fe1ba9b4a0f8ca9e365ac782895f6698c71.zip | |
Removed develop.js.
The develop.js is no longer necessary because the code in it has
been merged into the main code.
An empty extension.js has been added to provide a place for UI
customization.
Ticket #2099
Diffstat (limited to 'install/ui/test')
| -rw-r--r-- | install/ui/test/aci_tests.js | 11 | ||||
| -rw-r--r-- | install/ui/test/details_tests.js | 11 | ||||
| -rw-r--r-- | install/ui/test/entity_tests.js | 11 | ||||
| -rw-r--r-- | install/ui/test/ipa_tests.js | 11 | ||||
| -rw-r--r-- | install/ui/test/navigation_tests.js | 11 | ||||
| -rw-r--r-- | install/ui/test/widget_tests.js | 11 |
6 files changed, 26 insertions, 40 deletions
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js index 2ff1acddd..b050b7476 100644 --- a/install/ui/test/aci_tests.js +++ b/install/ui/test/aci_tests.js @@ -26,15 +26,12 @@ var entity = {name:'bogus'}; module('aci',{ setup: function() { IPA.ajax_options.async = false; - IPA.init( - "data", - true, - function(data, text_status, xhr) { - }, - function(xhr, text_status, error_thrown) { + IPA.init({ + url: 'data', + on_error: function(xhr, text_status, error_thrown) { ok(false, "ipa_init() failed: "+error_thrown); } - ); + }); target_container = $('<div id="target"/>').appendTo(document.body); target_section = IPA.permission_target_section({ diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js index 122234e78..c6a55cda9 100644 --- a/install/ui/test/details_tests.js +++ b/install/ui/test/details_tests.js @@ -25,15 +25,12 @@ module('details', { setup: function() { IPA.ajax_options.async = false; - IPA.init( - "data", - true, - function(data, text_status, xhr) { - }, - function(xhr, text_status, error_thrown) { + IPA.init({ + url: 'data', + on_error: function(xhr, text_status, error_thrown) { ok(false, "ipa_init() failed: "+error_thrown); } - ); + }); IPA.nav = {}; diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js index 12a1fcae2..84a5e28fe 100644 --- a/install/ui/test/entity_tests.js +++ b/install/ui/test/entity_tests.js @@ -27,10 +27,9 @@ module('entity',{ IPA.ajax_options.async = false; - IPA.init( - "data", - true, - function(data, text_status, xhr) { + IPA.init({ + url: 'data', + on_success: function(data, text_status, xhr) { IPA.entity_factories.user = function(){ return IPA. @@ -41,10 +40,10 @@ module('entity',{ build(); }; }, - function(xhr, text_status, error_thrown) { + on_error: function(xhr, text_status, error_thrown) { ok(false, "ipa_init() failed: "+error_thrown); } - ); + }); entities_container = $('<div id="entities"/>').appendTo(document.body); diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js index 8b3efc708..372f76879 100644 --- a/install/ui/test/ipa_tests.js +++ b/install/ui/test/ipa_tests.js @@ -26,16 +26,15 @@ test("Testing ipa_init().", function() { IPA.ajax_options.async = false; - IPA.init( - "data", - true, - function(data, text_status, xhr) { + IPA.init({ + url: 'data', + on_success: function(data, text_status, xhr) { ok(true, "ipa_init() succeeded."); }, - function(xhr, text_status, error_thrown) { + on_error: function(xhr, text_status, error_thrown) { ok(false, "ipa_init() failed: "+error_thrown); } - ); + }); }); test("Testing IPA.get_entity_param().", function() { diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 6df1926c3..92a23eebe 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -23,15 +23,12 @@ module('navigation', { setup: function() { IPA.ajax_options.async = false; - IPA.init( - 'data', - true, - function(data, text_status, xhr) { - }, - function(xhr, text_status, error_thrown) { + IPA.init({ + url: 'data', + on_error: function(xhr, text_status, error_thrown) { ok(false, 'ipa_init() failed: '+error_thrown); } - ); + }); } }); diff --git a/install/ui/test/widget_tests.js b/install/ui/test/widget_tests.js index 50a5f7d6f..4549d5a94 100644 --- a/install/ui/test/widget_tests.js +++ b/install/ui/test/widget_tests.js @@ -28,15 +28,12 @@ var spec; module('widget',{ setup: function() { IPA.ajax_options.async = false; - IPA.init( - "data", - true, - function(data, text_status, xhr) { - }, - function(xhr, text_status, error_thrown) { + IPA.init({ + url: 'data', + on_error: function(xhr, text_status, error_thrown) { ok(false, "ipa_init() failed: "+error_thrown); } - ); + }); widget_container = $('<div id="widget"/>').appendTo(document.body); widget = null; |
