Index: third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js |
diff --git a/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js b/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js |
index 23d644e80f7f398dbb37721096cd73bceb9a7810..7164a1b06ee2203c790dab1d4c7048504f82508a 100644 |
--- a/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js |
+++ b/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js |
@@ -212,7 +212,7 @@ function runChecksWithRAF(checks) |
function runChecksWithPauseAPI(checks) { |
for (var k in checks) { |
var timeMs = Number(k); |
- log('Pausing at time: ' + timeMs + ', current animations: ' + document.timeline.getAnimations().length); |
+ log('Pausing at time: ' + timeMs + ', current animations: ' + document.getAnimations().length); |
internals.pauseAnimations(timeMs / 1000); |
checks[k].forEach(function(check) { check(); }); |
} |
@@ -243,7 +243,7 @@ function log(message) |
function waitForAnimationsToStart(callback) |
{ |
- if (document.timeline.getAnimations().length > 0) { |
+ if (document.getAnimations().length > 0) { |
callback(); |
} else { |
setTimeout(waitForAnimationsToStart.bind(this, callback), 0); |