mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
Backed out changeset 39aa8c99853c due to incorrect reviewer in checkin message.
This commit is contained in:
parent
86a55abe33
commit
15fc7dd36e
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user