summaryrefslogtreecommitdiffstats
path: root/install/ui/test/ipa_tests.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-12 02:13:30 -0500
committerAdam Young <ayoung@redhat.com>2011-04-13 23:27:50 -0400
commit805b94f22d42eddee42ed8772aca89036edb8399 (patch)
tree12c6d80ce465b0541cfb15332177f36fba79bc0b /install/ui/test/ipa_tests.js
parent9cac1d88fcffcce65018869827eadcfc0ff157f1 (diff)
downloadfreeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.gz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.xz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.zip
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
Diffstat (limited to 'install/ui/test/ipa_tests.js')
-rw-r--r--install/ui/test/ipa_tests.js22
1 files changed, 18 insertions, 4 deletions
diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js
index 9385a3915..72a32783f 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');