Bug 1651311 - Make sure TART test waits until browser window idle tasks have finished running before starting. r=sparky,perftest-reviewers

In bug 1633635, tabs were altered so that they don't animate during the first
few event loop ticks of a new window. This made it so that TART would sometimes
race the function that resumed tab animations. When TART won the race, it would
open a tab that would open without animation, and then timeout waiting for that
animation to complete.

This patch makes it so that TART waits until the first window has completed its
idle tasks, meaning that tab animations should be enabled for the window.

Differential Revision: https://phabricator.services.mozilla.com/D98399
This commit is contained in:
Mike Conley 2020-12-02 20:22:39 +00:00
Родитель 5543e97235
Коммит 4a36b77818
2 изменённых файлов: 4 добавлений и 5 удалений

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

@ -46,10 +46,7 @@
"benchmark_zip": "jetstream.zip"
},
"svgr": {
"tests": ["tsvgx", "tsvgr_opacity", "tscrollx", "tsvg_static"]
},
"svgr_disabled_see_bug1651311": {
"tests": ["tart"]
"tests": ["tsvgx", "tsvgr_opacity", "tscrollx", "tsvg_static", "tart"]
},
"perf-reftest": {
"tests": ["perf_reftest"]

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

@ -85,7 +85,9 @@ this.tart = class extends ExtensionAPI {
break;
case "runTest":
win.gBrowserInit.idleTasksFinishedPromise.then(() => {
new win.Tart().startTest(sendResult, command.data);
});
break;
case "setASAP":