2010-11-16 05:06:18 -08:00
|
|
|
function test() {
|
|
|
|
waitForExplicitFinish();
|
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
let addonBar = document.getElementById("addon-bar");
|
2010-11-16 05:06:18 -08:00
|
|
|
ok(addonBar, "got addon bar");
|
2010-11-22 02:21:43 -08:00
|
|
|
ok(!isElementVisible(addonBar), "addon bar initially hidden");
|
2010-11-16 05:06:18 -08:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
openToolbarCustomizationUI(function () {
|
2010-11-22 02:21:43 -08:00
|
|
|
ok(isElementVisible(addonBar),
|
|
|
|
"add-on bar is visible during toolbar customization");
|
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
closeToolbarCustomizationUI(onClose);
|
|
|
|
});
|
2010-11-16 05:06:18 -08:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
function onClose() {
|
2010-11-22 02:21:43 -08:00
|
|
|
ok(!isElementVisible(addonBar),
|
|
|
|
"addon bar is hidden after toolbar customization");
|
2010-11-16 05:06:18 -08:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
finish();
|
2010-11-16 05:06:18 -08:00
|
|
|
}
|
|
|
|
}
|