| Index: LayoutTests/web-animations-api/transitions-replay.html
|
| diff --git a/LayoutTests/web-animations-api/transitions-replay.html b/LayoutTests/web-animations-api/transitions-replay.html
|
| index 8849de939349cd48c976a9f57559feed7a2bc5ea..083b041a78358c49dfd8c775e6e6b565f00763e8 100644
|
| --- a/LayoutTests/web-animations-api/transitions-replay.html
|
| +++ b/LayoutTests/web-animations-api/transitions-replay.html
|
| @@ -16,13 +16,13 @@ t.step(function() {
|
| element.style.background = "green";
|
| element.offsetTop; // Force recalc
|
|
|
| - assert_equals(document.timeline.getAnimationPlayers().length, 1);
|
| - var player = document.timeline.getAnimationPlayers()[0];
|
| - player.onfinish = function() {
|
| + assert_equals(document.timeline.getAnimations().length, 1);
|
| + var animation = document.timeline.getAnimations()[0];
|
| + animation.onfinish = function() {
|
| requestAnimationFrame(function() {
|
| requestAnimationFrame(function() {
|
| - player.startTime = document.timeline.currentTime - 10;
|
| - player.onfinish = t.done.bind(t);
|
| + animation.startTime = document.timeline.currentTime - 10;
|
| + animation.onfinish = t.done.bind(t);
|
| });
|
| });
|
| }
|
|
|