diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /layout/reftests/bugs/1553571-2.html | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/bugs/1553571-2.html')
-rw-r--r-- | layout/reftests/bugs/1553571-2.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/layout/reftests/bugs/1553571-2.html b/layout/reftests/bugs/1553571-2.html index 0b844745c0..ab064ca391 100644 --- a/layout/reftests/bugs/1553571-2.html +++ b/layout/reftests/bugs/1553571-2.html @@ -2,6 +2,8 @@ <html class='reftest-wait'> <head> <script> +let num = 0; +let numMs = 50; var changesLeft = 10; function go() { window.setTimeout(changeit, 0); @@ -11,16 +13,26 @@ function changeit() { var a = document.getElementById("a"); a.style.transform = 'scale(' + (256.1 + Math.random()*0.01) + ') rotate(1deg)'; + num++; + if (changesLeft > 0) { --changesLeft; - window.setTimeout(changeit, 50); + window.setTimeout(changeit, numMs); } 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); + numMs = 74; + if (num >= 100 && navigator.appVersion.includes("Android")) { + // That's not enough time on Android, so give it a bit more time. This still + // reproduces the original bug with the original patch backed out, even though + // one would think anything over 100ms would not reproduce, I'm not sure why. + // It's better to run the this with this timeout then have the test disabled. + numMs = 200; + } + window.setTimeout(changeit, numMs); document.documentElement.classList.remove("reftest-wait"); } } |