зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1586254 - Make sure runUrlbarTest doesn't complain about 'unexpected changed rect' in the non-megabar results panel. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48663 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
be16bc8aac
Коммит
32fa53860b
|
@ -781,16 +781,14 @@ async function runUrlbarTest(
|
|||
},
|
||||
};
|
||||
} else {
|
||||
// Hide the results as we expect many changes there that we don't want to
|
||||
// detect here.
|
||||
URLBar.view.panel.style.visibility = "hidden";
|
||||
|
||||
let dropmarkerRect = URLBar.dropmarker.getBoundingClientRect();
|
||||
let textBoxRect = URLBar.querySelector(
|
||||
"moz-input-box"
|
||||
).getBoundingClientRect();
|
||||
let resultsRect = {
|
||||
top: URLBar.textbox.closest("toolbar").getBoundingClientRect().bottom,
|
||||
right: win.innerWidth,
|
||||
bottom: win.innerHeight,
|
||||
left: 0,
|
||||
};
|
||||
expectedRects = {
|
||||
filter: rects =>
|
||||
rects.filter(
|
||||
|
@ -806,12 +804,7 @@ async function runUrlbarTest(
|
|||
(r.x1 >= dropmarkerRect.left - 1 &&
|
||||
r.x2 <= dropmarkerRect.right + 1 &&
|
||||
r.y1 >= dropmarkerRect.top &&
|
||||
r.y2 <= dropmarkerRect.bottom) ||
|
||||
// We expect many changes in the results view.
|
||||
(r.x1 >= resultsRect.left &&
|
||||
r.x2 <= resultsRect.right &&
|
||||
r.y1 >= resultsRect.top &&
|
||||
r.y2 <= resultsRect.bottom)
|
||||
r.y2 <= dropmarkerRect.bottom)
|
||||
)
|
||||
),
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче