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

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

Issue 1413463008: Web Animations: Migrate SVG path 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 <body>
3 <template id="target-template">
4 <svg width="90" height="90">
5 <path class="target" />
6 </svg>
7 </template>
8 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
9 <script>
10 'use strict';
11
12 assertAttributeInterpolation({
13 property: 'd',
14 underlying: 'm 1 1',
15 fromComposite: 'add',
16 from: 'm 2 3',
17 toComposite: 'add',
18 to: 'm 3 4'
19 }, [
20 {at: -0.4, is: 'm 2.6 3.6'},
21 {at: 0, is: 'm 3 4'},
22 {at: 0.2, is: 'm 3.2 4.2'},
23 {at: 0.6, is: 'm 3.6 4.6'},
24 {at: 1, is: 'm 4 5'},
25 {at: 1.4, is: 'm 4.4 5.4'}
26 ]);
27
28 assertAttributeInterpolation({
29 property: 'd',
30 underlying: 'm 1 1',
31 fromComposite: 'replace',
32 from: 'm 2 3',
33 toComposite: 'add',
34 to: 'm 3 4'
35 }, [
36 {at: -0.4, is: 'm 1.2 2.2'},
37 {at: 0, is: 'm 2 3'},
38 {at: 0.2, is: 'm 2.4 3.4'},
39 {at: 0.6, is: 'm 3.2 4.2'},
40 {at: 1, is: 'm 4 5'},
41 {at: 1.4, is: 'm 4.8 5.8'}
42 ]);
43
44 assertAttributeInterpolation({
45 property: 'd',
46 underlying: 'm 0 0',
47 fromComposite: 'add',
48 from: 'm 2 3',
49 toComposite: 'replace',
50 to: 'm 3 4'
51 }, [
52 {at: -0.4, is: 'm 1.6 2.6'},
53 {at: 0, is: 'm 2 3'},
54 {at: 0.2, is: 'm 2.2 3.2'},
55 {at: 0.6, is: 'm 2.6 3.6'},
56 {at: 1, is: 'm 3 4'},
57 {at: 1.4, is: 'm 3.4 4.4'}
58 ]);
59
60 assertAttributeInterpolation({
61 property: 'd',
62 underlying: 'm 1 2',
63 fromComposite: 'add',
64 from: '',
65 toComposite: 'replace',
66 to: 'm 6 7'
67 }, [
68 {at: -0.4, is: 'm -1 0'},
69 {at: 0, is: 'm 1 2'},
70 {at: 0.2, is: 'm 2 3'},
71 {at: 0.6, is: 'm 4 5'},
72 {at: 1, is: 'm 6 7'},
73 {at: 1.4, is: 'm 8 9'}
74 ]);
75
76 assertAttributeInterpolation({
77 property: 'd',
78 underlying: 'm 0 0 l 1 1',
79 fromComposite: 'add',
80 from: '',
81 toComposite: 'replace',
82 to: 'm 6 7'
83 }, [
84 {at: 0.2, is: 'm 0 0 l 1 1'},
85 {at: 0.6, is: 'm 6 7'},
86 ]);
87
88 assertAttributeInterpolation({
89 property: 'd',
90 underlying: 'm 0 0 l 1 1',
91 fromComposite: 'add',
92 from: 'm 1 2',
93 toComposite: 'replace',
94 to: 'm 6 7'
95 }, [
96 {at: 0.2, is: 'm 2 3'},
97 {at: 0.6, is: 'm 4 5'},
98 ]);
99 </script>
100 </body>
101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698