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

Unified Diff: LayoutTests/web-animations-api/animationtimeline-consistent.html

Issue 847283004: Web Animations: Simplify mutable AnimationTimeline currentTime and playbackRate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Invalidate compositor animations. Created 5 years, 11 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/AnimationTimeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/animationtimeline-consistent.html
diff --git a/LayoutTests/web-animations-api/animationtimeline-consistent.html b/LayoutTests/web-animations-api/animationtimeline-consistent.html
new file mode 100644
index 0000000000000000000000000000000000000000..97fa4ef46f3b55bb79e0dfb4b01fb514db943fc3
--- /dev/null
+++ b/LayoutTests/web-animations-api/animationtimeline-consistent.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+var t = async_test('timeline.currentTime should be consistent despite 0 playback rate');
+
+document.timeline.playbackRate = 0;
+document.timeline.currentTime = 0;
+
+requestAnimationFrame(function() {
+ setTimeout(function() {
+ t.step(function() {
+ document.timeline.currentTime = 100;
+ assert_approx_equals(document.timeline.currentTime, 100, 0.1);
+ });
+ t.done();
+ });
+});
+</script>
« no previous file with comments | « no previous file | Source/core/animation/AnimationTimeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698