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

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

Issue 2145453002: Animations: Fix play state changes test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | 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 e6903c75c229f2b69a35dd7d9e2a08ac3a0bde00..5fd8080912ae7bd4f15bf8e48824dce2f6aa8b8a 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
@@ -1,4 +1,8 @@
<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Test play state changes for animations with a negative playback rate</title>
+<link rel="help" href="http://w3c.github.io/web-animations/#play-state">
+<script src="../imported/wpt/web-animations/testcommon.js"></script>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
@@ -60,7 +64,7 @@ test(function() {
test(function() {
var animation = runningAnimation();
assert_equals(animation.startTime, document.timeline.currentTime - (animation.playbackRate * animation.currentTime));
- assert_approx_equals(animation.currentTime, duration / 2, 0.000001);
+ assert_times_equal(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'running');
}, "running");
@@ -204,7 +208,7 @@ test(function() {
var animation = runningAnimation();
animation.pause();
assert_unresolved(animation.startTime);
- assert_approx_equals(animation.currentTime, duration / 2, 0.000001);
+ assert_times_equal(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'pending');
}, "running -> pause()");
@@ -228,7 +232,7 @@ test(function() {
var animation = runningAnimation();
animation.reverse();
assert_unresolved(animation.startTime);
- assert_approx_equals(animation.currentTime, duration / 2, 0.000001);
+ assert_times_equal(animation.currentTime, duration / 2);
assert_equals(animation.playState, 'pending');
}, "running -> reverse()");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698