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

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

Issue 2138303002: Update timeline-set-current-time to test setting animation timelines instead of document timelines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename file to .txt instead of .html (oops) Created 4 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
Index: third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html b/third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html
new file mode 100644
index 0000000000000000000000000000000000000000..97fa4ef46f3b55bb79e0dfb4b01fb514db943fc3
--- /dev/null
+++ b/third_party/WebKit/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>

Powered by Google App Engine
This is Rietveld 408576698