mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
22 lines
529 B
JavaScript
22 lines
529 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
let addonBar = document.getElementById("addon-bar");
|
|
ok(addonBar, "got addon bar");
|
|
ok(!isElementVisible(addonBar), "addon bar initially hidden");
|
|
|
|
openToolbarCustomizationUI(function () {
|
|
ok(isElementVisible(addonBar),
|
|
"add-on bar is visible during toolbar customization");
|
|
|
|
closeToolbarCustomizationUI(onClose);
|
|
});
|
|
|
|
function onClose() {
|
|
ok(!isElementVisible(addonBar),
|
|
"addon bar is hidden after toolbar customization");
|
|
|
|
finish();
|
|
}
|
|
}
|