From 3e1354e6aac6f4459d2252fc50dfc90471795619 Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Tue, 13 Jun 2017 17:48:03 +0100 Subject: [PATCH] Bug 1372309 - force height of overflow panel when testing size of resizing popups, r=aswan MozReview-Commit-ID: BK6z60Isd06 --HG-- extra : rebase_source : 1674e0510a565aa7e4c50a34e01a6f89336982e1 --- .../test/browser/browser_ext_browserAction_popup_resize.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js b/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js index c1196390e2b9..393538b27a00 100644 --- a/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js +++ b/browser/components/extensions/test/browser/browser_ext_browserAction_popup_resize.js @@ -63,6 +63,10 @@ add_task(async function testBrowserActionPopupResize() { async function testPopupSize(standardsMode, browserWin = window, arrowSide = "top") { let docType = standardsMode ? "" : ""; + let overflowView = browserWin.document.getElementById("widget-overflow-mainView"); + if (overflowView) { + overflowView.style.minHeight = "600px"; + } let extension = ExtensionTestUtils.loadExtension({ manifest: { @@ -260,6 +264,9 @@ async function testPopupSize(standardsMode, browserWin = window, arrowSide = "to await closeBrowserAction(extension, browserWin); + if (overflowView) { + overflowView.style.removeProperty("min-height"); + } await extension.unload(); }