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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-stdDeviation-composition.html

Issue 1419623009: SVG Web Animations: Add SVGNumberOptionalNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <template id="target-template">
5 <svg width="90" height="90">
6 <defs>
7 <filter>
8 <feGaussianBlur class="target" />
9 </filter>
10 </defs>
11 </svg>
12 </template>
13 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
14 <script>
15 'use strict';
16 assertAttributeInterpolation({
17 property: 'stdDeviation',
18 underlying: '0',
19 from: '1',
20 fromComposite: 'add',
21 to: '6 11',
22 toComposite: 'add',
23 }, [
24 {at: -0.4, is: '-1, -3'},
25 {at: 0, is: '1, 1'},
26 {at: 0.2, is: '2, 3'},
27 {at: 0.6, is: '4, 7'},
28 {at: 1, is: '6, 11'},
29 {at: 1.4, is: '8, 15'},
30 ]);
31
32 assertAttributeInterpolation({
33 property: 'stdDeviation',
34 underlying: '3',
35 from: '1',
36 fromComposite: 'add',
37 to: '6 11',
38 toComposite: 'add',
39 }, [
40 {at: -0.4, is: '2, 0'},
41 {at: 0, is: '4, 4'},
42 {at: 0.2, is: '5, 6'},
43 {at: 0.6, is: '7, 10'},
44 {at: 1, is: '9, 14'},
45 {at: 1.4, is: '11, 18'},
46 ]);
47
48 assertAttributeInterpolation({
49 property: 'stdDeviation',
50 underlying: '3',
51 from: '1',
52 fromComposite: 'replace',
53 to: '6 11',
54 toComposite: 'add',
55 }, [
56 {at: -0.4, is: '-2.2, -4.2'},
57 {at: 0, is: '1, 1'},
58 {at: 0.2, is: '2.6, 3.6'},
59 {at: 0.6, is: '5.8, 8.8'},
60 {at: 1, is: '9, 14'},
61 {at: 1.4, is: '12.2, 19.2'},
62 ]);
63
64 assertAttributeInterpolation({
65 property: 'stdDeviation',
66 underlying: '3',
67 from: '',
68 fromComposite: 'add',
69 to: '6 11',
70 toComposite: 'replace',
71 }, [
72 {at: -0.4, is: '1.8, -0.2'},
73 {at: 0, is: '3, 3'},
74 {at: 0.2, is: '3.6, 4.6'},
75 {at: 0.6, is: '4.8, 7.8'},
76 {at: 1, is: '6, 11'},
77 {at: 1.4, is: '7.2, 14.2'},
78 ]);
79
80 assertAttributeInterpolation({
81 property: 'stdDeviation',
82 underlying: '0',
83 from: '-2 10',
84 fromComposite: 'add',
85 to: '3 10',
86 toComposite: 'add',
87 }, [
88 {at: -0.4, is: '-4, 10'},
89 {at: 0, is: '-2, 10'},
90 {at: 0.2, is: '-1, 10'},
91 {at: 0.6, is: '1, 10'},
92 {at: 1, is: '3, 10'},
93 {at: 1.4, is: '5, 10'},
94 ]);
95
96 assertAttributeInterpolation({
97 property: 'stdDeviation',
98 underlying: '3',
99 from: '-2 10',
100 fromComposite: 'add',
101 to: '3 10',
102 toComposite: 'add',
103 }, [
104 {at: -0.4, is: '-1, 13'},
105 {at: 0, is: '1, 13'},
106 {at: 0.2, is: '2, 13'},
107 {at: 0.6, is: '4, 13'},
108 {at: 1, is: '6, 13'},
109 {at: 1.4, is: '8, 13'},
110 ]);
111
112 assertAttributeInterpolation({
113 property: 'stdDeviation',
114 underlying: '3',
115 from: '-2 10',
116 fromComposite: 'replace',
117 to: '3 10',
118 toComposite: 'add',
119 }, [
120 {at: -0.4, is: '-5.2, 8.8'},
121 {at: 0, is: '-2, 10'},
122 {at: 0.2, is: '-0.4, 10.6'},
123 {at: 0.6, is: '2.8, 11.8'},
124 {at: 1, is: '6, 13'},
125 {at: 1.4, is: '9.2, 14.2'},
126 ]);
127
128 assertAttributeInterpolation({
129 property: 'stdDeviation',
130 underlying: '3',
131 from: '',
132 fromComposite: 'add',
133 to: '3 10',
134 toComposite: 'replace',
135 }, [
136 {at: -0.4, is: '3, 0.2'},
137 {at: 0, is: '3, 3'},
138 {at: 0.2, is: '3, 4.4'},
139 {at: 0.6, is: '3, 7.2'},
140 {at: 1, is: '3, 10'},
141 {at: 1.4, is: '3, 12.8'},
142 ]);
143
144
145 </script>
146 </body>
147 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698