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

Side by Side Diff: LayoutTests/animations/cross-fade-background-image.html

Issue 716963002: Remove property-specific handling in animation-test-helpers.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@animhelpercleanup
Patch Set: rm whitespace Created 6 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #box { 4 #box {
5 position: absolute; 5 position: absolute;
6 left: 100px; 6 left: 100px;
7 top: 100px; 7 top: 100px;
8 height: 100px; 8 height: 100px;
9 width: 100px; 9 width: 100px;
10 background-color: red; 10 background-color: red;
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 @-webkit-keyframes animShorthand { 35 @-webkit-keyframes animShorthand {
36 from { background: url(resources/blue-100.png); } 36 from { background: url(resources/blue-100.png); }
37 to { background: url(resources/green-100.png); } 37 to { background: url(resources/green-100.png); }
38 } 38 }
39 </style> 39 </style>
40 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 40 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
41 <script type="text/javascript" charset="utf-8"> 41 <script type="text/javascript" charset="utf-8">
42 const expectedValues = [ 42 const expectedValues = [
43 // [time, element-id, property, expected-value, tolerance] 43 // [time, element-id, property, expected-value, tolerance]
44 [2.5, "box", "backgroundImage", 0.5, 0.05],
45 [2.5, ["box", "boxStatic"], "backgroundImage", 0.5, 0.05], 44 [2.5, ["box", "boxStatic"], "backgroundImage", 0.5, 0.05],
46 [2.5, ["boxShorthand", "boxStatic"], "backgroundImage", 0.5, 0.05], 45 [2.5, ["boxShorthand", "boxStatic"], "backgroundImage", 0.5, 0.05],
47 ]; 46 ];
48 47
49 var doPixelTest = true; 48 var doPixelTest = true;
50 var disablePauseAPI = false; 49 var disablePauseAPI = false;
51 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTe st); 50 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTe st);
52 </script> 51 </script>
53 </head> 52 </head>
54 <body> 53 <body>
55 <div id="box"></div> 54 <div id="box"></div>
56 <div id="boxStatic"></div> 55 <div id="boxStatic"></div>
57 <div id="boxShorthand"></div> 56 <div id="boxShorthand"></div>
58 <div id="result"></div> 57 <div id="result"></div>
59 </body> 58 </body>
60 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698