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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/timing/timing-properties-update-paused-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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 @keyframes anim { 5 @keyframes anim {
6 from { background-color: blue; } 6 from { background-color: blue; }
7 to { background-color: red; } 7 to { background-color: red; }
8 } 8 }
9 9
10 #target { 10 #target {
11 animation: anim 20s -10s infinite linear paused; 11 animation: anim 20s -10s infinite linear paused;
12 width: 100px; 12 width: 100px;
13 height: 100px; 13 height: 100px;
(...skipping 23 matching lines...) Expand all
37 target.style.animationPlayState = 'running'; 37 target.style.animationPlayState = 'running';
38 assert_not_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)' , 'background color'); 38 assert_not_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)' , 'background color');
39 39
40 target.style.animationPlayState = 'paused'; 40 target.style.animationPlayState = 'paused';
41 target.style.animationIterationCount = '1'; 41 target.style.animationIterationCount = '1';
42 target.style.animationDuration = '1s'; 42 target.style.animationDuration = '1s';
43 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)', 'b ackground color'); 43 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)', 'b ackground color');
44 44
45 }, "Check that changes in the animation timing properties are reflected immedi ately"); 45 }, "Check that changes in the animation timing properties are reflected immedi ately");
46 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698