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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/wrong-keyframe-name.html

Issue 2518273002: Remove unnecessary webkit prefixes from animation layout tests (Closed)
Patch Set: remove trailing space Created 4 years, 1 month 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 <style> 2 <style>
3 #test1 { 3 #test1 {
4 -webkit-animation-fill-mode: forwards; 4 animation-fill-mode: forwards;
5 -webkit-animation-duration: 1s; 5 animation-duration: 1s;
6 -webkit-animation-name: green; 6 animation-name: green;
7 } 7 }
8 #test2 { 8 #test2 {
9 -webkit-animation-fill-mode: forwards; 9 animation-fill-mode: forwards;
10 -webkit-animation-duration: 1s; 10 animation-duration: 1s;
11 } 11 }
12 #test3 { 12 #test3 {
13 -webkit-animation-fill-mode: forwards; 13 animation-fill-mode: forwards;
14 -webkit-animation-duration: 1s; 14 animation-duration: 1s;
15 -webkit-animation-name: notredorgreen; 15 animation-name: notredorgreen;
16 } 16 }
17 @-webkit-keyframes green { 17 @keyframes green {
18 from { 18 from {
19 background-color: white; 19 background-color: white;
20 } 20 }
21 to { 21 to {
22 background-color: green; 22 background-color: green;
23 } 23 }
24 } 24 }
25 @-webkit-keyframes red { 25 @keyframes red {
26 from { 26 from {
27 background-color: white; 27 background-color: white;
28 } 28 }
29 to { 29 to {
30 background-color: red; 30 background-color: red;
31 } 31 }
32 } 32 }
33 </style> 33 </style>
34 Tests that an animation does not run when it specifies an incorrect name. 34 Tests that an animation does not run when it specifies an incorrect name.
35 <div id="result">FAIL - nothing happened</div> 35 <div id="result">FAIL - nothing happened</div>
36 <div id="test1"></div> 36 <div id="test1"></div>
37 <div id="test2"></div> 37 <div id="test2"></div>
38 <div id="test3"></div> 38 <div id="test3"></div>
39 <script> 39 <script>
40 if (window.testRunner) { 40 if (window.testRunner) {
41 testRunner.dumpAsText(); 41 testRunner.dumpAsText();
42 testRunner.waitUntilDone(); 42 testRunner.waitUntilDone();
43 } 43 }
44 var pass = true; 44 var pass = true;
45 test1.addEventListener('webkitAnimationStart', function() { 45 test1.addEventListener('animationstart', function() {
46 test2.style.webkitAnimationName = 'green'; 46 test2.style.animationName = 'green';
47 }); 47 });
48 test2.addEventListener('webkitAnimationStart', function() { 48 test2.addEventListener('animationstart', function() {
49 result.innerText = pass ? 'PASS' : 'FAIL'; 49 result.innerText = pass ? 'PASS' : 'FAIL';
50 if (window.testRunner) 50 if (window.testRunner)
51 testRunner.notifyDone(); 51 testRunner.notifyDone();
52 }); 52 });
53 test3.addEventListener('webkitAnimationStart', function() { 53 test3.addEventListener('animationstart', function() {
54 pass = false; 54 pass = false;
55 }); 55 });
56 </script> 56 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698