Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js

Issue 2947103002: Expose getAnimations as function on Document (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698