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

Unified Diff: LayoutTests/web-animations-api/timed-item.html

Issue 365163004: Web Animations: Remove timeLag from Player API and model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/core/animation/AnimationNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/timed-item.html
diff --git a/LayoutTests/web-animations-api/timed-item.html b/LayoutTests/web-animations-api/timed-item.html
index 91b995d0567d5716a9dd0b5ba13457216ab3a61f..917d43a9185f74d3364a1a8456b6bc55b0b4f686 100644
--- a/LayoutTests/web-animations-api/timed-item.html
+++ b/LayoutTests/web-animations-api/timed-item.html
@@ -17,18 +17,18 @@ test(function() {
}, 'TimedItem.localTime and TimedItem.currentIteration are null when animation is not associated with a Player');
test(function() {
- var animation = element.animate(keyframes, {fill: 'both', duration: 2, iterations: 3}).source;
- animation.player.currentTime = -1;
- assert_equals(animation.localTime, -1);
+ var animation = element.animate(keyframes, {fill: 'both', duration: 2000, iterations: 3}).source;
+ animation.player.currentTime = -1000;
+ assert_equals(animation.localTime, -1000, 'localTime');
assert_equals(animation.currentIteration, 0);
- animation.player.currentTime = 1;
- assert_equals(animation.localTime, 1);
+ animation.player.currentTime = 1000;
+ assert_equals(animation.localTime, 1000);
assert_equals(animation.currentIteration, 0);
- animation.player.currentTime = 5;
- assert_equals(animation.localTime, 5);
+ animation.player.currentTime = 5000;
+ assert_equals(animation.localTime, 5000);
assert_equals(animation.currentIteration, 2);
- animation.player.currentTime = 7;
- assert_equals(animation.localTime, 7);
+ animation.player.currentTime = 7000;
+ assert_equals(animation.localTime, 7000);
assert_equals(animation.currentIteration, 2);
}, 'TimedItem.localTime and TimedItem.currentIteration return reasonable values when an animation is in effect');
« no previous file with comments | « no previous file | Source/core/animation/AnimationNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698