summaryrefslogtreecommitdiffstats
path: root/install/ui/test
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-05 00:21:49 -0600
committerAdam Young <ayoung@redhat.com>2011-03-06 20:50:07 -0500
commit154ed91457a258013a2f15cbbbf5adc36cf0e20a (patch)
tree7908bce7b3ad0a50e76a0886fe5d26a9497f21c8 /install/ui/test
parent2a6e7b5e3c8a16bf2c3e1e91bd953e7c073612f2 (diff)
downloadfreeipa-154ed91457a258013a2f15cbbbf5adc36cf0e20a.tar.gz
freeipa-154ed91457a258013a2f15cbbbf5adc36cf0e20a.tar.xz
freeipa-154ed91457a258013a2f15cbbbf5adc36cf0e20a.zip
Fixed memory leak caused by IPA.error_dialog.
Ticket 1054
Diffstat (limited to 'install/ui/test')
-rw-r--r--install/ui/test/ipa_tests.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js
index 41163df18..9385a3915 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."
);