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

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

Issue 1410343009: [WIP] Web Animations: Migrate SVG number list 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 <feComponentTransfer>
7 <feFuncG type="table" class="target" />
8 </feComponentTransfer>
9 </svg>
10 </template>
11 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
12 <script>
13 'use strict';
14 assertAttributeInterpolation({
15 property: 'tableValues',
16 underlying: '10, 20',
17 fromComposite: 'add',
18 from: '30, 40',
19 toComposite: 'add',
20 to: '50, -10'
21 }, [
22 {at: -0.4, is: '32, 80'},
23 {at: 0, is: '40, 60'},
24 {at: 0.2, is: '44, 50'},
25 {at: 0.6, is: '52, 30'},
26 {at: 1.0, is: '60, 10'},
27 {at: 1.4, is: '68, -10'},
28 ]);
29
30 assertAttributeInterpolation({
31 property: 'tableValues',
32 underlying: '10, 20',
33 fromComposite: 'replace',
34 from: '30',
35 toComposite: 'replace',
36 to: '50, -10'
37 }, [
38 {at: -0.4, is: '30'},
39 {at: 0, is: '30'},
40 {at: 0.2, is: '30'},
41 {at: 0.6, is: '50, -10'},
42 {at: 1.0, is: '50, -10'},
43 {at: 1.4, is: '50, -10'},
44 ]);
45
46 assertAttributeInterpolation({
47 property: 'tableValues',
48 underlying: '10, 20',
49 fromComposite: 'add',
50 from: '30',
51 toComposite: 'add',
52 to: '50, -10'
53 }, [
54 {at: -0.4, is: '30'},
55 {at: 0, is: '30'},
56 {at: 0.2, is: '30'},
57 {at: 0.6, is: '50, -10'},
58 {at: 1.0, is: '50, -10'},
59 {at: 1.4, is: '50, -10'},
60 ]);
61
62 assertAttributeInterpolation({
63 property: 'tableValues',
64 underlying: '10',
65 fromComposite: 'add',
66 from: '20, 30',
67 toComposite: 'add',
68 to: '50, 40'
69 }, [
70 {at: -0.4, is: '18, 26'},
71 {at: 0, is: '30, 30'},
72 {at: 0.2, is: '36, 32'},
73 {at: 0.6, is: '48, 36'},
74 {at: 1.0, is: '60, 40'},
75 {at: 1.4, is: '72, 44'},
76 ]);
77
78 assertAttributeInterpolation({
79 property: 'tableValues',
80 underlying: '10, 20',
81 fromComposite: 'add',
82 from: '30',
83 toComposite: 'add',
84 to: '40'
85 }, [
86 {at: -0.4, is: '36, 20'},
87 {at: 0, is: '40, 20'},
88 {at: 0.2, is: '42, 20'},
89 {at: 0.6, is: '46, 20'},
90 {at: 1.0, is: '50, 20'},
91 {at: 1.4, is: '54, 20'},
92 ]);
93
94 assertAttributeInterpolation({
95 property: 'tableValues',
96 underlying: '10, 20',
97 fromComposite: 'replace',
98 from: '30, 40',
99 toComposite: 'add',
100 to: '50, -10'
101 }, [
102 {at: -0.4, is: '18, 52'},
103 {at: 0, is: '30, 40'},
104 {at: 0.2, is: '36, 34'},
105 {at: 0.6, is: '48, 22'},
106 {at: 1.0, is: '60, 10'},
107 {at: 1.4, is: '72, -2'},
108 ]);
109
110 assertAttributeInterpolation({
111 property: 'tableValues',
112 underlying: '',
113 fromComposite: 'add',
114 from: '30, 40',
115 toComposite: 'replace',
116 to: '50, -10'
117 }, [
118 {at: -0.4, is: '22, 60'},
119 {at: 0, is: '30, 40'},
120 {at: 0.2, is: '34, 30'},
121 {at: 0.6, is: '42, 10'},
122 {at: 1.0, is: '50, -10'},
123 {at: 1.4, is: '58, -30'},
124 ]);
125 </script>
126 </body>
127 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698