diff options
Diffstat (limited to 'install/ui/test/ipa_tests.js')
-rw-r--r-- | install/ui/test/ipa_tests.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js index 8b3efc70..372f7687 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() { |