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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/direction-and-fill/animation-direction-alternate-reverse.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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test of animation-direction</title> 2 <title>Test of animation-direction</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <style> 5 <style>
6 #target { 6 #target {
7 animation-direction: alternate-reverse; 7 animation-direction: alternate-reverse;
8 animation-duration: 2s; 8 animation-duration: 2s;
9 animation-iteration-count: 2; 9 animation-iteration-count: 2;
10 animation-name: move; 10 animation-name: move;
11 animation-play-state: paused; 11 animation-play-state: paused;
12 animation-timing-function: linear; 12 animation-timing-function: linear;
13 animation-fill-mode: both; 13 animation-fill-mode: both;
14 14
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 target.style.animationDelay = '-3s'; 47 target.style.animationDelay = '-3s';
48 assert_equals(getComputedStyle(target).left, '200px'); 48 assert_equals(getComputedStyle(target).left, '200px');
49 49
50 target.style.animationDelay = '-4s'; 50 target.style.animationDelay = '-4s';
51 assert_equals(getComputedStyle(target).left, '400px'); 51 assert_equals(getComputedStyle(target).left, '400px');
52 52
53 target.style.animationDelay = '-5s'; 53 target.style.animationDelay = '-5s';
54 assert_equals(getComputedStyle(target).left, '400px'); 54 assert_equals(getComputedStyle(target).left, '400px');
55 }, "animation-direction alternate-reverse plays backwards, then forwards"); 55 }, "animation-direction alternate-reverse plays backwards, then forwards");
56 </script> 56 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698