Backed out changeset 39aa8c99853c due to incorrect reviewer in checkin message.

This commit is contained in:
Mark Hammond 2013-01-21 15:37:44 +11:00
parent 86a55abe33
commit 15fc7dd36e
2 changed files with 2 additions and 13 deletions

View File

@ -128,8 +128,6 @@ let SocialUI = {
case "nsPref:changed":
if (data == "social.sidebar.open") {
SocialSidebar.update();
} else if (data == "social.toast-notifications.enabled") {
SocialToolbar.updateButton();
}
break;
}

View File

@ -156,15 +156,6 @@ var tests = {
let removeSocialMenuitems = document.getElementsByClassName("social-remove-menuitem");
is(removeSocialMenuitems.length, 2, "Remove Social menuitems exist");
next();
},
testToggleNotifications: function(next) {
let enabled = Services.prefs.getBoolPref("social.toast-notifications.enabled");
let cmd = document.getElementById("Social:ToggleNotifications");
is(cmd.getAttribute("checked"), enabled ? "true" : "false");
enabled = !enabled;
Services.prefs.setBoolPref("social.toast-notifications.enabled", enabled);
is(cmd.getAttribute("checked"), enabled ? "true" : "false");
Services.prefs.clearUserPref("social.toast-notifications.enabled");
next();
},
}
}