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

Unified Diff: third_party/WebKit/LayoutTests/animations/timing-properties-update-running-animation.html

Issue 2979503002: Move animation timing tests to subdirectory (Closed)
Patch Set: Created 3 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/animations/timing-properties-update-running-animation.html
diff --git a/third_party/WebKit/LayoutTests/animations/timing-properties-update-running-animation.html b/third_party/WebKit/LayoutTests/animations/timing-properties-update-running-animation.html
deleted file mode 100644
index 46b3d7b79608166a731bb3389d63e6f1b1eaf68b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/timing-properties-update-running-animation.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<style>
- @keyframes anim {
- from { left: 0px; }
- to { left: 300px; }
- }
-
- #target {
- animation: anim 10s -5s paused linear;
- width: 100px;
- height: 100px;
- left: -1px;
- position: relative;
- background-color: green;
- }
-</style>
-<div id="target"></div>
-<script>
- test(function() {
- target.style.animationPlayState = 'running';
- target.offsetTop; // Force style recalc
- target.style.animationPlayState = 'paused';
-
- target.style.animationDuration = '3s'; // Animation ends
- assert_equals(parseInt(getComputedStyle(target).left), -1, 'left offset');
-
- target.style.animationIterationCount = 2; // Box should be 2/3 of the way across
- assert_equals(parseInt(getComputedStyle(target).left), 200, 'left offset');
-
- target.style.animationDirection = 'reverse'; // Box should be 1/3 of the way across
- assert_equals(parseInt(getComputedStyle(target).left), 100, 'left offset');
-
- target.style.animationDelay = '-4s'; // Box should be 2/3 of the way across
- assert_equals(parseInt(getComputedStyle(target).left), 200, 'left offset');
-
- target.style.animationIterationCount = 1; // Animation ends
- target.style.animationFillMode = 'forwards';
- assert_equals(parseInt(getComputedStyle(target).left), 0, 'left offset');
-
- }, "Changes to animation properties should be reflected immediately");
-</script>

Powered by Google App Engine
This is Rietveld 408576698