2012-06-06 04:01:19 -07:00
|
|
|
function test() {
|
2008-04-29 12:07:14 -07:00
|
|
|
waitForExplicitFinish();
|
2008-12-01 20:45:49 -08:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
openToolbarCustomizationUI(customizationWindowLoaded);
|
2008-04-29 12:07:14 -07:00
|
|
|
}
|
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
function customizationWindowLoaded(win) {
|
|
|
|
let x = win.screenX;
|
|
|
|
let iconModeList = win.document.getElementById("modelist");
|
2008-04-29 12:07:14 -07:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
iconModeList.addEventListener("popupshown", function popupshown() {
|
|
|
|
iconModeList.removeEventListener("popupshown", popupshown, false);
|
2008-04-29 12:07:14 -07:00
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
executeSoon(function () {
|
|
|
|
is(win.screenX, x,
|
|
|
|
"toolbar customization window shouldn't move when the iconmode menulist is opened");
|
2010-05-14 03:20:00 -07:00
|
|
|
iconModeList.open = false;
|
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
closeToolbarCustomizationUI(finish);
|
2010-05-14 03:20:00 -07:00
|
|
|
});
|
|
|
|
}, false);
|
|
|
|
|
2012-06-06 04:01:19 -07:00
|
|
|
iconModeList.open = true;
|
2008-04-29 12:07:14 -07:00
|
|
|
}
|