Bug 1372309 - force height of overflow panel when testing size of resizing popups, r?aswan
MozReview-Commit-ID: BK6z60Isd06
--- a/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js
+++ b/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js
@@ -58,16 +58,20 @@ add_task(async function testBrowserActio
}
await closeBrowserAction(extension);
await extension.unload();
});
async function testPopupSize(standardsMode, browserWin = window, arrowSide = "top") {
let docType = standardsMode ? "<!DOCTYPE html>" : "";
+ let overflowView = browserWin.document.getElementById("widget-overflow-mainView");
+ if (overflowView) {
+ overflowView.style.minHeight = "600px";
+ }
let extension = ExtensionTestUtils.loadExtension({
manifest: {
"browser_action": {
"default_popup": "popup.html",
"browser_style": false,
},
},
@@ -255,16 +259,19 @@ async function testPopupSize(standardsMo
is(win.innerWidth, innerWidth, "Window width should not change");
is(win.innerHeight, innerHeight, "Window height should return to its original value");
is(win.scrollMaxY, 0, "Document should not be vertically scrollable");
checkPanelPosition();
await closeBrowserAction(extension, browserWin);
+ if (overflowView) {
+ overflowView.style.removeProperty("min-height");
+ }
await extension.unload();
}
add_task(async function testBrowserActionMenuResizeStandards() {
await testPopupSize(true);
});
add_task(async function testBrowserActionMenuResizeQuirks() {