mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1577714. Increase time between transform tweaks in layout/reftests/bugs/1553571-1.html so reftest harness has time to finish test.
Differential Revision: https://phabricator.services.mozilla.com/D45962 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3a1c85bca4
commit
c0e2485655
@ -4,7 +4,7 @@
|
||||
<script>
|
||||
var changesLeft = 10;
|
||||
function go() {
|
||||
window.setInterval(changeit, 50);
|
||||
window.setTimeout(changeit, 0);
|
||||
}
|
||||
|
||||
function changeit() {
|
||||
@ -13,8 +13,14 @@ function changeit() {
|
||||
|
||||
if (changesLeft > 0) {
|
||||
--changesLeft;
|
||||
window.setTimeout(changeit, 50);
|
||||
}
|
||||
if (changesLeft == 0) {
|
||||
// 75-100ms is the timeout for expirty from the active layer tracker.
|
||||
// Increase the time between transform tweaks to 74ms to give the reftest the best
|
||||
// chance of running the mozafterpaint handler and checking that there are no more
|
||||
// paints pending so it can finish.
|
||||
window.setTimeout(changeit, 74);
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user