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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/opacity-transform-animation.html

Issue 2970883003: Separate out animations tests with prefixing (Closed)
Patch Set: Rebaseline virtual/threaded version of test too 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 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 .target { 5 .target {
6 position: absolute; 6 position: absolute;
7 top: 100px; 7 top: 100px;
8 left: 0; 8 left: 0;
9 height: 100px; 9 height: 100px;
10 width: 100px; 10 width: 100px;
11 } 11 }
12 #box { 12 #box {
13 background-color: green; 13 background-color: green;
14 -webkit-animation-name: move; 14 animation-name: move;
15 -webkit-animation-duration: 1s; 15 animation-duration: 1s;
16 -webkit-animation-timing-function: linear; 16 animation-timing-function: linear;
17 -webkit-animation-iteration-count: 1; 17 animation-iteration-count: 1;
18 } 18 }
19 @-webkit-keyframes move { 19 @keyframes move {
20 from { 20 from {
21 transform: translateX(0) scale(1); 21 transform: translateX(0) scale(1);
22 opacity: 0.0; 22 opacity: 0.0;
23 } 23 }
24 to { 24 to {
25 transform: translateX(400px) scale(1); 25 transform: translateX(400px) scale(1);
26 opacity: 1.0; 26 opacity: 1.0;
27 } 27 }
28 } 28 }
29 #indicator { 29 #indicator {
30 left: 200px; 30 left: 200px;
31 background-color: red; 31 background-color: red;
32 } 32 }
33 </style> 33 </style>
34 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 34 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
35 <script type="text/javascript" charset="utf-8"> 35 <script type="text/javascript" charset="utf-8">
36 36
37 const expectedValues = [ 37 const expectedValues = [
38 // [time, element-id, property, expected-value, tolerance] 38 // [time, element-id, property, expected-value, tolerance]
39 [0.5, "box", "webkitTransform.4", 200, 5], 39 [0.5, "box", "transform.4", 200, 5],
40 ]; 40 ];
41 41
42 var disablePauseAnimationAPI = false; 42 var disablePauseAnimationAPI = false;
43 var doPixelTest = true; 43 var doPixelTest = true;
44 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest); 44 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest);
45 45
46 </script> 46 </script>
47 </head> 47 </head>
48 <body> 48 <body>
49 49
50 <!-- In the pixel results, the green square should overlay the red square --> 50 <!-- In the pixel results, the green square should overlay the red square -->
51 <div class="target" id="indicator"></div> 51 <div class="target" id="indicator"></div>
52 <div class="target" id="box"></div> 52 <div class="target" id="box"></div>
53 <div id="result"></div> 53 <div id="result"></div>
54 54
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698