mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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;
|
|
}
|