Bug 1782247 - Allow another rect for browser_windowopen.js. r=florian

Differential Revision: https://phabricator.services.mozilla.com/D153633
This commit is contained in:
Emilio Cobos Álvarez 2022-08-03 18:23:22 +00:00
Родитель 9082a3a7bd
Коммит 06edb947d8
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -112,6 +112,18 @@ add_task(async function() {
) && // in the toolbar
inRange(r.x1, 11, 13), // very close to the left of the screen
},
{
name: "Initial favicon appearing after first paint",
condition: r => {
let faviconRect = win.gBrowser.tabs[0].iconImage.getBoundingClientRect();
return (
r.w == faviconRect.width &&
r.h == faviconRect.height &&
r.x1 == faviconRect.x &&
r.y1 == faviconRect.y
);
},
},
{
// Note that the length and x values here are a bit weird because on
// some fonts, we appear to detect the two words separately.