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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html

Issue 1843283003: Fix flaky negative-playback-rate animation test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fix Created 4 years, 9 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html
index bc3422da131df048de4dc3fac5f14116638240e1..b854e163eb4d91a4f1f6bd98612730d28091a671 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html
+++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html
@@ -19,7 +19,7 @@ function idleAnimation() {
function runningAnimation() {
var animation = idleAnimation();
animation.play();
- animation.startTime = document.timeline.currentTime + duration;
+ animation.startTime = document.timeline.currentTime + duration / 2;
return animation;
}
@@ -60,7 +60,7 @@ test(function() {
test(function() {
var animation = runningAnimation();
assert_equals(animation.startTime, document.timeline.currentTime - (animation.playbackRate * animation.currentTime));
- assert_equals(animation.currentTime, duration);
+ assert_equals(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'running');
}, "running");
@@ -204,7 +204,7 @@ test(function() {
var animation = runningAnimation();
animation.pause();
assert_unresolved(animation.startTime);
- assert_equals(animation.currentTime, duration);
+ assert_equals(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'pending');
}, "running -> pause()");
@@ -228,7 +228,7 @@ test(function() {
var animation = runningAnimation();
animation.reverse();
assert_unresolved(animation.startTime);
- assert_equals(animation.currentTime, 0);
+ assert_equals(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'pending');
}, "running -> reverse()");
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698