Bug 657154: browser_bug553455.js checks the wrong preference. r=gavin
authorDave Townsend <dtownsend@oxymoronical.com>
Thu, 19 May 2011 11:03:58 -0700
changeset 69854 2a0f98717c90e9eca689e11d7df0297563270dbd
parent 69853 462c726144bc1fb45b61e774f64ac5d61b4e047c
child 69855 f594c196fac77e757c370ec978057a79a72e4502
push idunknown
push userunknown
push dateunknown
reviewersgavin
bugs657154, 553455
milestone6.0a1
Bug 657154: browser_bug553455.js checks the wrong preference. r=gavin
browser/base/content/test/browser_bug553455.js
--- a/browser/base/content/test/browser_bug553455.js
+++ b/browser/base/content/test/browser_bug553455.js
@@ -91,21 +91,20 @@ function test_disabled_install() {
     let notification = aPanel.childNodes[0];
     is(notification.id, "xpinstall-disabled-notification", "Should have seen installs disabled");
     is(notification.button.label, "Enable", "Should have seen the right button");
     is(notification.getAttribute("label"),
        "Software installation is currently disabled. Click Enable and try again.");
 
     wait_for_notification_close(function() {
       try {
-        Services.prefs.getBoolPref("xpinstall.disabled");
-        ok(false, "xpinstall.disabled should not be set");
+        ok(Services.prefs.getBoolPref("xpinstall.enabled"), "Installation should be enabled");
       }
       catch (e) {
-        ok(true, "xpinstall.disabled should not be set");
+        ok(false, "xpinstall.enabled should be set");
       }
 
       gBrowser.removeTab(gBrowser.selectedTab);
 
       AddonManager.getAllInstalls(function(aInstalls) {
         is(aInstalls.length, 1, "Should have been one install created");
         aInstalls[0].cancel();