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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/fill-forward-negative-end-delay.html

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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/fill-forward-negative-end-delay.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/fill-forward-negative-end-delay.html b/third_party/WebKit/LayoutTests/web-animations-api/fill-forward-negative-end-delay.html
deleted file mode 100644
index 1082d65701a1f749ca84030a7363d4813361b01d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/fill-forward-negative-end-delay.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Tests for effect clipping via negative end delay</title>
-<link rel="help" href="http://w3c.github.io/web-animations/#calculating-the-active-time">
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../external/wpt/web-animations/testcommon.js"></script>
-<body>
-<script>
-'use strict';
-
-test(function(t) {
- var animation = createDiv(t).animate(null, {
- fill: 'forwards',
- duration: 1,
- endDelay: -1,
- });
- animation.currentTime = 10;
- assert_equals(animation.effect.getComputedTiming().progress, 0,
- 'Progress should be zero since we clip to the start of the animation');
-}, 'Negative end delay clipping into the start of the animation');
-
-test(function(t) {
- var animation = createDiv(t).animate(null, {
- fill: 'forwards',
- duration: 1,
- iterations: 2,
- endDelay: -1,
- });
- animation.currentTime = 10;
- assert_equals(animation.effect.getComputedTiming().progress, 1,
- 'Progress should be 1 since we clip to the end of the first iteration ' +
- 'and the second iteration does not have a chance to start');
-}, 'Negative end delay clipping to the end of the the first iteration');
-
-test(function(t) {
- var animation = createDiv(t).animate(null, {
- fill: 'forwards',
- duration: 1,
- iterations: 2,
- endDelay: -0.75,
- });
- animation.currentTime = 10;
- assert_equals(animation.effect.getComputedTiming().progress, 0.25,
- 'Progress should be 0.25 since we clip part way through the second iteration');
-}, 'Negative end delay clipping part way into the second iteration');
-
-test(function(t) {
- var animation = createDiv(t).animate(null, {
- fill: 'forwards',
- duration: 1,
- iterations: 0,
- endDelay: -1,
- });
- animation.currentTime = 10;
- assert_equals(animation.effect.getComputedTiming().progress, 0,
- 'Progress should be 0 since there are no iterations to make progress in');
-}, 'Negative end delay clipping into zero iterations');
-
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698