1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/
6 // * if add-on is installed to the add-on bar, the bar is made visible.
7 // * if add-on is uninstalled from the add-on bar, and no more add-ons there,
11 let aml = AddonsMgrListener;
12 ok(aml, "AddonsMgrListener exists");
14 is(aml.addonBar.collapsed, true, "add-on bar is hidden initially");
16 AddonsMgrListener.onInstalling();
18 let element = document.createElement("toolbaritem");
19 element.id = "bug598923-addon-item";
20 aml.addonBar.appendChild(element);
21 // aob checks the count, makes visible
22 AddonsMgrListener.onInstalled();
24 is(aml.addonBar.collapsed, false, "add-on bar has been made visible");
26 AddonsMgrListener.onUninstalling();
28 aml.addonBar.removeChild(element);
29 // aob checks the count, makes hidden
30 AddonsMgrListener.onUninstalled();
32 is(aml.addonBar.collapsed, true, "add-on bar is hidden again");