mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add another layer of rAF to avoid intermittent failures.
This commit is contained in:
parent
7df2087dc0
commit
e11878129d
2 changed files with 6 additions and 4 deletions
|
@ -26620,7 +26620,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/animation-removed-node.html": [
|
"mozilla/animation-removed-node.html": [
|
||||||
"6ba0318ea1e07b42ef444f838753adbefe9633d6",
|
"a2f9dfe284a22a6241290c86841172387dcdbeb6",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/binding_keyword.html": [
|
"mozilla/binding_keyword.html": [
|
||||||
|
|
|
@ -18,10 +18,12 @@ div.test { animation: boo 1s infinite; }
|
||||||
document.getElementById('first').remove();
|
document.getElementById('first').remove();
|
||||||
document.getElementById('second').style.display = 'none';
|
document.getElementById('second').style.display = 'none';
|
||||||
// Ensure that we wait until the next layout is complete.
|
// Ensure that we wait until the next layout is complete.
|
||||||
|
requestAnimationFrame(t.step_func(function() {
|
||||||
requestAnimationFrame(t.step_func(function() {
|
requestAnimationFrame(t.step_func(function() {
|
||||||
// Verify that the previous animations are no longer considered active.
|
// Verify that the previous animations are no longer considered active.
|
||||||
assert_equals(window.runningAnimationCount, 0);
|
assert_equals(window.runningAnimationCount, 0);
|
||||||
t.done();
|
t.done();
|
||||||
|
});
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}, "Animations are no longer active when a node can't be animated.");
|
}, "Animations are no longer active when a node can't be animated.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue