Auto merge of #22447 - servo:jdm-patch-10, r=ferjm

Add another layer of rAF to avoid intermittent failures.

Hopefully fixes #22445.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22447)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-12-15 13:41:49 -05:00 committed by GitHub
commit 6731ddd29f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -26620,7 +26620,7 @@
"testharness"
],
"mozilla/animation-removed-node.html": [
"6ba0318ea1e07b42ef444f838753adbefe9633d6",
"a2f9dfe284a22a6241290c86841172387dcdbeb6",
"testharness"
],
"mozilla/binding_keyword.html": [

View file

@ -19,9 +19,11 @@ div.test { animation: boo 1s infinite; }
document.getElementById('second').style.display = 'none';
// Ensure that we wait until the next layout is complete.
requestAnimationFrame(t.step_func(function() {
// Verify that the previous animations are no longer considered active.
assert_equals(window.runningAnimationCount, 0);
t.done();
requestAnimationFrame(t.step_func(function() {
// Verify that the previous animations are no longer considered active.
assert_equals(window.runningAnimationCount, 0);
t.done();
});
}));
});
}, "Animations are no longer active when a node can't be animated.");