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

Unified Diff: LayoutTests/web-animations-api/transitions-replay.html

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No, really. Created 5 years, 7 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/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);
});
});
}

Powered by Google App Engine
This is Rietveld 408576698