summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api
diff options
context:
space:
mode:
authordstockwell@chromium.org <dstockwell@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-07-22 04:21:51 +0000
committerdstockwell@chromium.org <dstockwell@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-07-22 04:21:51 +0000
commit7584e70ed33b6a42ffdc3e33807db9c2b3dfb0b9 (patch)
tree5e758c1ff6f0f034ad409f2df405d2d3b501b5da /third_party/WebKit/LayoutTests/web-animations-api
parentd3692949311329cd9e2b023e4139cd71c25eabc9 (diff)
downloadchromium_src-7584e70ed33b6a42ffdc3e33807db9c2b3dfb0b9.zip
chromium_src-7584e70ed33b6a42ffdc3e33807db9c2b3dfb0b9.tar.gz
chromium_src-7584e70ed33b6a42ffdc3e33807db9c2b3dfb0b9.tar.bz2
Web Animations: Remove timeLag from Player API and model
API changes are guarded by experimental feature flag. No visible changes to CSS animations and element.animate. This is a prototype for behavior we plan to incorporate into the Web Animations specification: * startTime is effective start time or NaN when paused or starting * timeLag is removed Review URL: https://codereview.chromium.org/365163004 git-svn-id: svn://svn.chromium.org/blink/trunk@178619 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/web-animations-api')
-rw-r--r--third_party/WebKit/LayoutTests/web-animations-api/timed-item.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/timed-item.html b/third_party/WebKit/LayoutTests/web-animations-api/timed-item.html
index 91b995d..917d43a 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/timed-item.html
+++ b/third_party/WebKit/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');