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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/background-image-interpolation.html

Issue 1881333002: Use neutralKeyframe sentinal instead of '' for interpolation-test.js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix composition test code Created 4 years, 8 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 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 background-image: url(../resources/blue-100.png); 5 background-image: url(../resources/blue-100.png);
6 background-size: 0 0; 6 background-size: 0 0;
7 } 7 }
8 .target { 8 .target {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
11 display: inline-block; 11 display: inline-block;
12 border: 10px solid black; 12 border: 10px solid black;
13 background-repeat: no-repeat; 13 background-repeat: no-repeat;
14 background-image: url(../resources/blue-100.png); 14 background-image: url(../resources/blue-100.png);
15 } 15 }
16 .expected { 16 .expected {
17 border-color: green; 17 border-color: green;
18 margin-right: 2px; 18 margin-right: 2px;
19 } 19 }
20 </style> 20 </style>
21 <body> 21 <body>
22 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
23 <script> 23 <script>
24 // Neutral to image 24 // Neutral to image
25 var from = 'url(../resources/blue-100.png)'; 25 var from = 'url(../resources/blue-100.png)';
26 var to = 'url(../resources/green-100.png)'; 26 var to = 'url(../resources/green-100.png)';
27 assertInterpolation({ 27 assertInterpolation({
28 property: 'background-image', 28 property: 'background-image',
29 from: '', 29 from: neutralKeyframe,
30 to: to, 30 to: to,
31 }, [ 31 }, [
32 {at: -0.3, is: from}, 32 {at: -0.3, is: from},
33 {at: 0, is: from}, 33 {at: 0, is: from},
34 {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'}, 34 {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
35 {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'}, 35 {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
36 {at: 1, is: to}, 36 {at: 1, is: to},
37 {at: 1.5, is: to}, 37 {at: 1.5, is: to},
38 ]); 38 ]);
39 39
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Multiple mismatched types 165 // Multiple mismatched types
166 from = 'url(../resources/blue-100.png), none'; 166 from = 'url(../resources/blue-100.png), none';
167 to = 'url(../resources/stripes-100.png), url(../resources/green-100.png)'; 167 to = 'url(../resources/stripes-100.png), url(../resources/green-100.png)';
168 assertNoInterpolation({ 168 assertNoInterpolation({
169 property: 'background-image', 169 property: 'background-image',
170 from: from, 170 from: from,
171 to: to, 171 to: to,
172 }); 172 });
173 </script> 173 </script>
174 </body> 174 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698