From 154ed91457a258013a2f15cbbbf5adc36cf0e20a Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Sat, 5 Mar 2011 00:21:49 -0600 Subject: Fixed memory leak caused by IPA.error_dialog. Ticket 1054 --- install/ui/test/ipa_tests.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'install/ui/test') diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js index 41163df1..9385a391 100644 --- a/install/ui/test/ipa_tests.js +++ b/install/ui/test/ipa_tests.js @@ -155,10 +155,8 @@ test("Testing successful IPA.cmd().", function() { "Checking ajax invocation counter" ); - var dialog = IPA.error_dialog.parent('.ui-dialog'); - ok( - !dialog.length, + !IPA.error_dialog, "The dialog box is not created." ); @@ -284,7 +282,7 @@ test("Testing unsuccessful IPA.cmd().", function() { ); ok( - !IPA.error_dialog.dialog('isOpen'), + !IPA.error_dialog, "After cancel, the dialog box is closed." ); -- cgit