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/details_tests.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'install/ui/test/details_tests.js') diff --git a/install/ui/test/details_tests.js b/install/ui/test/details_tests.js index 76a75240..c63a0af8 100644 --- a/install/ui/test/details_tests.js +++ b/install/ui/test/details_tests.js @@ -114,18 +114,18 @@ test("Testing details lifecycle: create, setup, load.", function(){ var result = {}; - IPA.cmd( - 'user_show', - ['kfrog'], - {}, - function(data, text_status, xhr) { + IPA.command({ + entity: 'user', + method: 'show', + args: ['kfrog'], + on_success: function(data, text_status, xhr) { result = data.result.result; - ok(true, "IPA.cmd() succeeded."); + ok(true, "IPA.command() succeeded."); }, - function(xhr, text_status, error_thrown) { - ok(false, "IPA.cmd() failed: "+error_thrown); + on_error: function(xhr, text_status, error_thrown) { + ok(false, "IPA.command() failed: "+error_thrown); } - ); + }).execute(); var setup_called = false; var save_called= false; -- cgit