Bug 1570336 - Add exception to test rather than disabling the feature for all performance tests r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D40446

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrei Oprea 2019-08-14 14:24:54 +00:00
Родитель e8463465d7
Коммит 91997f1370
3 изменённых файлов: 23 добавлений и 1 удалений

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

@ -7,7 +7,6 @@
prefs =
# Skip migration work in BG__migrateUI for browser_startup.js since it isn't
# representative of common startup.
browser.messaging-system.fxatoolbarbadge.enabled=false # Bug 1570336
browser.migration.version=9999999
browser.startup.record=true
gfx.canvas.willReadFrequently.enable=true

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

@ -36,6 +36,9 @@ add_task(async function() {
.querySelector("moz-input-box")
.getBoundingClientRect();
let historyDropmarkerRect = gURLBar.dropmarker.getBoundingClientRect();
let fxaAccountsButton = document
.getElementById("fxa-toolbar-menu-button")
.getBoundingClientRect();
let inRange = (val, min, max) => min <= val && val <= max;
@ -128,6 +131,15 @@ add_task(async function() {
r.y1 >= historyDropmarkerRect.y &&
r.y2 <= historyDropmarkerRect.bottom,
},
{
name:
"FxA accounts button is intentionally badged 10s after startup",
condition: r =>
r.x1 >= fxaAccountsButton.left &&
r.x2 <= fxaAccountsButton.right &&
r.y1 >= fxaAccountsButton.top &&
r.y2 <= fxaAccountsButton.bottom,
},
],
},
}

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

@ -55,6 +55,9 @@ add_task(async function() {
let alreadyFocused = false;
let inRange = (val, min, max) => min <= val && val <= max;
let fxaAccountsButton = document
.getElementById("fxa-toolbar-menu-button")
.getBoundingClientRect();
let expectations = {
expectedReflows: EXPECTED_REFLOWS,
frames: {
@ -102,6 +105,14 @@ add_task(async function() {
);
},
},
{
name: "FxA accounts button is intentionally badged 10s after startup",
condition: r =>
r.x1 >= fxaAccountsButton.left &&
r.x2 <= fxaAccountsButton.right &&
r.y1 >= fxaAccountsButton.top &&
r.y2 <= fxaAccountsButton.bottom,
},
],
},
};