зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1372309 - force height of overflow panel when testing size of resizing popups, r=aswan
MozReview-Commit-ID: BK6z60Isd06 --HG-- extra : rebase_source : 1674e0510a565aa7e4c50a34e01a6f89336982e1
This commit is contained in:
Родитель
738252c121
Коммит
3e1354e6aa
|
@ -63,6 +63,10 @@ add_task(async function testBrowserActionPopupResize() {
|
|||
|
||||
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: {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче