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

Unified Diff: third_party/WebKit/LayoutTests/animations/animation-direction-alternate.html

Issue 2975723002: Move direction and fill 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/animation-direction-alternate.html
diff --git a/third_party/WebKit/LayoutTests/animations/animation-direction-alternate.html b/third_party/WebKit/LayoutTests/animations/animation-direction-alternate.html
deleted file mode 100644
index 2d1395b527c3aca5a9b4d25d1adc44819546365e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animation-direction-alternate.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<title>Test of animation-direction</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<style>
- #target {
- animation-direction: alternate;
- animation-duration: 2s;
- animation-iteration-count: 2;
- animation-name: move;
- animation-play-state: paused;
- animation-timing-function: linear;
- animation-fill-mode: both;
-
-
- background-color: red;
- height: 100px;
- left: 500px;
- position: absolute;
- width: 100px;
- }
- @keyframes move {
- from { left: 0px; }
- to { left: 400px; }
- }
-
-</style>
-<div id="target"></div>
-<script>
- 'use strict';
- test(function() {
- target.style.animationDelay = '1s';
- assert_equals(getComputedStyle(target).left, '0px');
-
- target.style.animationDelay = '-0.5s';
- assert_equals(getComputedStyle(target).left, '100px');
-
- target.style.animationDelay = '-1.5s';
- assert_equals(getComputedStyle(target).left, '300px');
-
- target.style.animationDelay = '-2.5s';
- assert_equals(getComputedStyle(target).left, '300px');
-
- target.style.animationDelay = '-3.5s';
- assert_equals(getComputedStyle(target).left, '100px');
-
- target.style.animationDelay = '-5s';
- assert_equals(getComputedStyle(target).left, '0px');
- }, "animation-direction alternate plays forwards, then backwards");
-</script>

Powered by Google App Engine
This is Rietveld 408576698