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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/direction-and-fill/animation-direction-normal.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: normal; 7 animation-direction: normal;
8 animation-duration: 2s; 8 animation-duration: 2s;
9 animation-iteration-count: 2; 9 animation-iteration-count: 2;
10 animation-name: move1; 10 animation-name: move1;
11 animation-play-state: paused; 11 animation-play-state: paused;
12 animation-timing-function: linear; 12 animation-timing-function: linear;
13 background-color: red; 13 background-color: red;
14 height: 100px; 14 height: 100px;
(...skipping 15 matching lines...) Expand all
30 target.style.animationDelay = '-0.5s'; 30 target.style.animationDelay = '-0.5s';
31 assert_equals(getComputedStyle(target).left, '50px'); 31 assert_equals(getComputedStyle(target).left, '50px');
32 32
33 target.style.animationDelay = '-1s'; 33 target.style.animationDelay = '-1s';
34 assert_equals(getComputedStyle(target).left, '100px'); 34 assert_equals(getComputedStyle(target).left, '100px');
35 35
36 target.style.animationDelay = '-2.5s'; 36 target.style.animationDelay = '-2.5s';
37 assert_equals(getComputedStyle(target).left, '50px'); 37 assert_equals(getComputedStyle(target).left, '50px');
38 }, "animation-direction normal plays forwards"); 38 }, "animation-direction normal plays forwards");
39 </script> 39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698