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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-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 <text>
7 <tspan class="target">
8 abcd
9 </tspan>
10 </text>
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: 'rotate',
18 underlying: '10, 20',
19 fromComposite: 'add',
20 from: '30, 40',
21 toComposite: 'add',
22 to: '50, -10'
23 }, [
24 {at: -0.4, is: '32, 80'},
25 {at: 0, is: '40, 60'},
26 {at: 0.2, is: '44, 50'},
27 {at: 0.6, is: '52, 30'},
28 {at: 1.0, is: '60, 10'},
29 {at: 1.4, is: '68, -10'},
30 ]);
31
32 assertAttributeInterpolation({
33 property: 'rotate',
34 underlying: '10, 20',
35 fromComposite: 'replace',
36 from: '30, 40',
37 toComposite: 'add',
38 to: '50, -10'
39 }, [
40 {at: -0.4, is: '18, 52'},
41 {at: 0, is: '30, 40'},
42 {at: 0.2, is: '36, 34'},
43 {at: 0.6, is: '48, 22'},
44 {at: 1.0, is: '60, 10'},
45 {at: 1.4, is: '72, -2'},
46 ]);
47
48 assertAttributeInterpolation({
49 property: 'rotate',
50 underlying: '',
51 fromComposite: 'add',
52 from: '30, 40',
53 toComposite: 'replace',
54 to: '50, -10'
55 }, [
56 {at: -0.4, is: ''},
57 {at: 0, is: ''},
58 {at: 0.2, is: ''},
59 {at: 0.6, is: ''},
60 {at: 1.0, is: '50, -10'},
61 {at: 1.4, is: ''},
62 ]);
63 </script>
64 </body>
65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698