Bug 1680896 - Try to make test_pending_animation_tracker more reliable. r=birtles

I couldn't reproduce this intermittent, but this test is prone to
throttling decisions. In fact, without this check:

  https://searchfox.org/mozilla-central/rev/7751fef9eeb3db0a07ae4680daa2a62bd8f49882/dom/base/Document.cpp#7055

I did see consistent failures. Ensure the window is fully loaded so that
the refresh driver doesn't get throttled unexpectedly.

Try to enable the test across platforms.

Differential Revision: https://phabricator.services.mozilla.com/D147633
This commit is contained in:
Emilio Cobos Álvarez 2022-05-31 10:51:59 +00:00
Родитель f9b1d27b17
Коммит dca059cb62
2 изменённых файлов: 6 добавлений и 3 удалений

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

@ -51,9 +51,6 @@ skip-if = (os == 'win' && bits == 64) # Bug 1363957
[mozilla/test_mainthread_synchronization_pref.html] [mozilla/test_mainthread_synchronization_pref.html]
[mozilla/test_moz_prefixed_properties.html] [mozilla/test_moz_prefixed_properties.html]
[mozilla/test_pending_animation_tracker.html] [mozilla/test_pending_animation_tracker.html]
skip-if =
fission && xorigin && os == "linux" && !debug # Bug 1716403 - New fission platform triage
win10_2004 && !debug # Bug 1680896
[mozilla/test_restyles.html] [mozilla/test_restyles.html]
support-files = support-files =
mozilla/file_restyles.html mozilla/file_restyles.html

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

@ -11,6 +11,12 @@
<script> <script>
"use strict"; "use strict";
promise_test(function waitForLoad() {
return new Promise(resolve => {
window.addEventListener("load", resolve, { once: true });
});
});
promise_test(async t => { promise_test(async t => {
// See below, but we should ensure we are in a rAF callback before proceeding // See below, but we should ensure we are in a rAF callback before proceeding
// or else we will get inconsistent results. // or else we will get inconsistent results.