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

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

Issue 1406393006: Web Animations: Migrate SVG integer interpolation to interpolation types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <feConvolveMatrix class="target" />
7 </svg>
8 </template>
9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
10 <script>
11 'use strict';
12 assertAttributeInterpolation({
13 property: 'targetX',
14 underlying: '128',
15 fromComposite: 'add',
16 from: '-32',
17 toComposite: 'add',
18 to: '1029'
19 }, [
20 {at: -0.4, is: -328},
21 {at: 0, is: 96},
22 {at: 0.2, is: 308},
23 {at: 0.6, is: 733},
24 {at: 1, is: 1157},
25 {at: 1.4, is: 1581}
26 ]);
27
28 assertAttributeInterpolation({
29 property: 'targetX',
30 underlying: '-37',
31 fromComposite: 'replace',
32 from: '18',
33 toComposite: 'add',
34 to: '1'
35 }, [
36 {at: -0.4, is: 40},
37 {at: 0, is: 18},
38
39 {at: 0.6, is: -14},
40 {at: 1, is: -36},
41 {at: 1.4, is: -58}
42 ]);
43
44 assertAttributeInterpolation({
45 property: 'targetX',
46 underlying: '2',
47 fromComposite: 'add',
48 from: '',
49 toComposite: 'replace',
50 to: '-99'
51 }, [
52 {at: -0.4, is: 42},
53 {at: 0, is: 2},
54 {at: 0.2, is: -18},
55 {at: 0.6, is: -59},
56 {at: 1, is: -99},
57 {at: 1.4, is: -139}
58 ]);
59
60
61 assertAttributeInterpolation({
62 property: 'targetY',
63 underlying: '128',
64 fromComposite: 'add',
65 from: '-32',
66 toComposite: 'add',
67 to: '1029'
68 }, [
69 {at: -0.4, is: -328},
70 {at: 0, is: 96},
71 {at: 0.2, is: 308},
72 {at: 0.6, is: 733},
73 {at: 1, is: 1157},
74 {at: 1.4, is: 1581}
75 ]);
76
77 assertAttributeInterpolation({
78 property: 'targetY',
79 underlying: '-37',
80 fromComposite: 'replace',
81 from: '18',
82 toComposite: 'add',
83 to: '1'
84 }, [
85 {at: -0.4, is: 40},
86 {at: 0, is: 18},
87
88 {at: 0.6, is: -14},
89 {at: 1, is: -36},
90 {at: 1.4, is: -58}
91 ]);
92
93 assertAttributeInterpolation({
94 property: 'targetY',
95 underlying: '2',
96 fromComposite: 'add',
97 from: '',
98 toComposite: 'replace',
99 to: '-99'
100 }, [
101 {at: -0.4, is: 42},
102 {at: 0, is: 2},
103 {at: 0.2, is: -18},
104 {at: 0.6, is: -59},
105 {at: 1, is: -99},
106 {at: 1.4, is: -139}
107 ]);
108 </script>
109 </body>
110 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698