mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-04 16:15:25 +00:00
25 lines
658 B
JavaScript
25 lines
658 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
openToolbarCustomizationUI(customizationWindowLoaded);
|
|
}
|
|
|
|
function customizationWindowLoaded(win) {
|
|
let x = win.screenX;
|
|
let iconModeList = win.document.getElementById("modelist");
|
|
|
|
iconModeList.addEventListener("popupshown", function popupshown() {
|
|
iconModeList.removeEventListener("popupshown", popupshown, false);
|
|
|
|
executeSoon(function () {
|
|
is(win.screenX, x,
|
|
"toolbar customization window shouldn't move when the iconmode menulist is opened");
|
|
iconModeList.open = false;
|
|
|
|
closeToolbarCustomizationUI(finish);
|
|
});
|
|
}, false);
|
|
|
|
iconModeList.open = true;
|
|
}
|