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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/web-animations/timing-model/animations/current-time.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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/external/wpt/web-animations/timing-model/animations/current-time.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/web-animations/timing-model/animations/current-time.html b/third_party/WebKit/LayoutTests/external/wpt/web-animations/timing-model/animations/current-time.html
index df7228f43f5c67544edc41116232b5be0fdbdd72..7500175435c8421b92e0e82c12a82b08b23d2aa1 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/web-animations/timing-model/animations/current-time.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/web-animations/timing-model/animations/current-time.html
@@ -61,5 +61,17 @@ test(function(t) {
'Animation has a unresolved start time');
}, 'The current time is calculated from the timeline time, start time and ' +
'playback rate');
+
+promise_test(function(t) {
+ var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
+ animation.playbackRate = 0;
+
+ return animation.ready.then(function() {
+ return waitForAnimationFrames(1);
+ }).then(function() {
+ assert_times_equal(animation.currentTime, 0);
+ });
+}, 'The current time does not progress if playback rate is 0');
+
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698