From 805b94f22d42eddee42ed8772aca89036edb8399 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 12 Apr 2011 02:13:30 -0500 Subject: Merged IPA.cmd() into IPA.command(). The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988 --- install/ui/test/ipa_tests.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'install/ui/test/ipa_tests.js') diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js index 9385a391..72a32783 100644 --- a/install/ui/test/ipa_tests.js +++ b/install/ui/test/ipa_tests.js @@ -95,7 +95,7 @@ test("Testing IPA.get_member_attribute().", function() { ); }); -test("Testing successful IPA.cmd().", function() { +test("Testing successful IPA.command().", function() { var method = 'method'; var args = ['arg1', 'arg2', 'arg3']; @@ -148,7 +148,14 @@ test("Testing successful IPA.cmd().", function() { request.success(xhr, text_status, error_thrown); }; - IPA.cmd(method, args, options, success_handler, error_handler, object); + IPA.command({ + entity: object, + method: method, + args: args, + options: options, + on_success: success_handler, + on_error: error_handler + }).execute(); equals( ajax_counter, 1, @@ -168,7 +175,7 @@ test("Testing successful IPA.cmd().", function() { $.ajax = orig; }); -test("Testing unsuccessful IPA.cmd().", function() { +test("Testing unsuccessful IPA.command().", function() { var method = 'method'; var args = ['arg1', 'arg2', 'arg3']; @@ -221,7 +228,14 @@ test("Testing unsuccessful IPA.cmd().", function() { request.error(xhr, text_status, error_thrown); }; - IPA.cmd(method, args, options, success_handler, error_handler, object); + IPA.command({ + entity: object, + method: method, + args: args, + options: options, + on_success: success_handler, + on_error: error_handler + }).execute(); var dialog = IPA.error_dialog.parent('.ui-dialog'); -- cgit