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

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

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use new API in layout tests Created 5 years, 8 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: LayoutTests/animations/resources/animation-test-helpers.js
diff --git a/LayoutTests/animations/resources/animation-test-helpers.js b/LayoutTests/animations/resources/animation-test-helpers.js
index 823d4456d644bbf86ee61b959a3db766510fe23a..00b19df5e3d47f9db35847d0b2e98378147216e5 100644
--- a/LayoutTests/animations/resources/animation-test-helpers.js
+++ b/LayoutTests/animations/resources/animation-test-helpers.js
@@ -205,7 +205,7 @@ function runChecksWithRAF(checks)
function runChecksWithPauseAPI(checks) {
for (var k in checks) {
var timeMs = Number(k);
- log('Pausing at time: ' + timeMs + ', current players: ' + document.timeline.getAnimationPlayers().length);
+ log('Pausing at time: ' + timeMs + ', current players: ' + document.timeline.getAnimations().length);
alancutter (OOO until 2018) 2015/05/05 01:04:50 s/player/animation/
dstockwell 2015/05/05 03:33:24 Done ^_^
internals.pauseAnimations(timeMs / 1000);
checks[k].forEach(function(check) { check(); });
}
@@ -236,7 +236,7 @@ function log(message)
function waitForAnimationsToStart(callback)
{
- if (document.timeline.getAnimationPlayers().length > 0) {
+ if (document.timeline.getAnimations().length > 0) {
callback();
} else {
setTimeout(waitForAnimationsToStart.bind(this, callback), 0);

Powered by Google App Engine
This is Rietveld 408576698