diff options
Diffstat (limited to 'install/ui/test/entity_tests.js')
-rw-r--r-- | install/ui/test/entity_tests.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js index 12a1fcae..84a5e28f 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); |