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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/svg-stroke-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 .container { 4 .container {
5 display: inline-block; 5 display: inline-block;
6 } 6 }
7 .parent { 7 .parent {
8 stroke: blue; 8 stroke: blue;
9 } 9 }
10 .target { 10 .target {
(...skipping 15 matching lines...) Expand all
26 <stop offset="1" stop-color="blue"/> 26 <stop offset="1" stop-color="blue"/>
27 </linearGradient> 27 </linearGradient>
28 </defs> 28 </defs>
29 <rect x="0" y="0" width="10" height="100"></rect> 29 <rect x="0" y="0" width="10" height="100"></rect>
30 </svg> 30 </svg>
31 </template> 31 </template>
32 <script src="resources/interpolation-test.js"></script> 32 <script src="resources/interpolation-test.js"></script>
33 <script> 33 <script>
34 assertInterpolation({ 34 assertInterpolation({
35 property: 'stroke', 35 property: 'stroke',
36 from: '', 36 from: neutralKeyframe,
37 to: 'green', 37 to: 'green',
38 }, [ 38 }, [
39 {at: -0.4, is: 'rgb(255, 180, 0)'}, 39 {at: -0.4, is: 'rgb(255, 180, 0)'},
40 {at: 0, is: 'rgb(255, 165, 0)'}, 40 {at: 0, is: 'rgb(255, 165, 0)'},
41 {at: 0.2, is: 'rgb(204, 158, 0)'}, 41 {at: 0.2, is: 'rgb(204, 158, 0)'},
42 {at: 0.6, is: 'rgb(102, 143, 0)'}, 42 {at: 0.6, is: 'rgb(102, 143, 0)'},
43 {at: 1, is: 'rgb(0, 128, 0)'}, 43 {at: 1, is: 'rgb(0, 128, 0)'},
44 {at: 1.5, is: 'rgb(0, 110, 0)'}, 44 {at: 1.5, is: 'rgb(0, 110, 0)'},
45 ]); 45 ]);
46 46
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 {at: 0.6, is: '#996366'}, 108 {at: 0.6, is: '#996366'},
109 {at: 1, is: 'orange'}, 109 {at: 1, is: 'orange'},
110 ]); 110 ]);
111 assertNoInterpolation({ 111 assertNoInterpolation({
112 property: 'stroke', 112 property: 'stroke',
113 from: 'orange', 113 from: 'orange',
114 to: 'url(#gradient)' 114 to: 'url(#gradient)'
115 }); 115 });
116 </script> 116 </script>
117 </body> 117 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698